# Seaching from among users assigned to an app

**URL:** <https://community.postman.com/t/seaching-from-among-users-assigned-to-an-app/24436>\
**Category:** Help Hub\
**Created:** [June 2, 2021, 7:09pm UTC](https://community.postman.com/t/seaching-from-among-users-assigned-to-an-app/24436 "2021-06-02T19:09:11Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jbogdan](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jbogdan](https://community.postman.com/u/jbogdan)\
**Post date:** [June 4, 2021, 5:27pm UTC](https://community.postman.com/t/seaching-from-among-users-assigned-to-an-app/24436/7 "2021-06-04T17:27:43Z")

</div>

What you’re missing is that I am taking the users assigned to an app and then searching among those for a particular last name. Your query searches for all users in an Okta tenant for a particular department.

For example, here is a valid query for all the users assigned to a particular app (if you place the id into the appId environment variable).  
{{url}}/api/v1/apps/{{appId}}/users

I wish to then search from that set of users for one with a matching lastName.

---

_[View the full topic](https://community.postman.com/t/seaching-from-among-users-assigned-to-an-app/24436)._
