# Searching from among users assigned to an app

**URL:** <https://community.postman.com/t/searching-from-among-users-assigned-to-an-app/25024>\
**Category:** Help Hub\
**Created:** [June 18, 2021, 5:45pm UTC](https://community.postman.com/t/searching-from-among-users-assigned-to-an-app/25024 "2021-06-18T17:45:02Z")\
**Posts on this page:** 6\
**Page:** 1

<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 18, 2021, 5:45pm UTC](https://community.postman.com/t/searching-from-among-users-assigned-to-an-app/25024/1 "2021-06-18T17:45:03Z")

</div>

Pulling the appId from AD-sourced integration ( I am querying Okta using Postman), I am trying to search within that collection of users (i.e., those assigned to that particular app) for a particular user with a specific last name. In other words, I want to return all users whose last name is ‘Stone’ that is part of the appId I have set in my global variable. Here is the query I have developed,

{{url}}/api/v1/apps/{{appId}}/users?search=profile.lastName eq “Stone”

The problem is that it retrieves users who have “Stone” in the managerDn. I don’t want this, I want only users whose last name is “Stone”. How do I revise my query to accomplish that?

P.S. 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). I get all the users assigned to the app. Now, from among those, I wish to see those whose last name is “Stone”  
{{url}}/api/v1/apps/{{appId}}/users

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [June 25, 2021, 1:16pm UTC](https://community.postman.com/t/searching-from-among-users-assigned-to-an-app/25024/2 "2021-06-25T13:16:34Z")

</div>

Similar to this post:

> [@Seaching from among users assigned to an app](https://community.postman.com/t/seaching-from-among-users-assigned-to-an-app/24436/7):
>
> 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.

@jbogdan Did you tried reaching the developers or the Okta community forum?

---

<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 25, 2021, 4:31pm UTC](https://community.postman.com/t/searching-from-among-users-assigned-to-an-app/25024/3 "2021-06-25T16:31:38Z")

</div>

And what would be your point as that earlier post did not yield a solution? I was told by a moderator to move the inquiry here. I still do not have an answer.

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [June 26, 2021, 1:23am UTC](https://community.postman.com/t/searching-from-among-users-assigned-to-an-app/25024/4 "2021-06-26T01:23:42Z")

</div>

@jbogdan Yes, moving is just updating the category, since I see a new post I am just linking both to notify they are similar 🙂

May be no one would have faced such scenario, and that’s why there’s no answer for it.

Did you tried reaching to your developer or tried posting this in Okta Community Forum? That might help 😇

---

<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 26, 2021, 2:19pm UTC](https://community.postman.com/t/searching-from-among-users-assigned-to-an-app/25024/5 "2021-06-26T14:19:44Z")

</div>

I have followed the advice of the last moderator and posted here.

Please do not reply to my posts.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:57pm UTC](https://community.postman.com/t/searching-from-among-users-assigned-to-an-app/25024/6 "2024-12-12T12:57:14Z")

</div>

Closed on December 12, 2024, 12:57pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
