<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007eSwEKCA0Okta Classic EngineIntegrationsAnswered2026-06-01T23:38:18.000Z2022-05-18T17:01:02.000Z2026-06-01T23:38:18.000Z

vir8k (vir8k) asked a question.

LDAP Query for all uniquemembers of a group

I can accomplish this with memberOf but due to API constraints with Okta, this goes over our rate limit and is too slow for production use. I am trying to do this with uniqueMember as this supports indexing but I am having a real hard time getting this to query correctly.

 

Here is what I have and I believe the issue is how I am thinking of uniqueMember. I believe it is just an attribute for the groups but I don't know how to query a list of groups to get the uniqueMembers.

 

(&(objectClass=inetOrgPerson)(|(uniqueMember=CN=groupnamehere,ou=groups,dc=myorg,dc=okta,dc=com)

 

The memberof query that works but hits over the API limit and is slow.

(&(objectClass=inetOrgPerson)(|(memberOf=CN=group1,ou=groups,dc=myorg,dc=okta,dc=com)


  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @vir8k (vir8k)​,

     

    Thank you for posting on Okta community page!

     

    I have done some research and played around with the LDAP queries in order to see if I could get a list of all uniquemembers of a group but I was only able to list the groups that the user is being part of. I ended up using the bellow query in which it required to add the full path:

    • (&(objectClass=groupofuniquenames)(uniquemember=uid=mtest@mailinator.com,ou=users,dc=test,dc=okta,dc=com))

     

    Additionally through my research I could find that indeed the uniquemember is an LDAP group attribute for members in groupOfUniqueNames that uses the value of DistinguishedName.

     

    I hope the above information was useful!

    Expand Post
    Selected as Best
  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @vir8k (vir8k)​,

     

    Thank you for posting on Okta community page!

     

    I have done some research and played around with the LDAP queries in order to see if I could get a list of all uniquemembers of a group but I was only able to list the groups that the user is being part of. I ended up using the bellow query in which it required to add the full path:

    • (&(objectClass=groupofuniquenames)(uniquemember=uid=mtest@mailinator.com,ou=users,dc=test,dc=okta,dc=com))

     

    Additionally through my research I could find that indeed the uniquemember is an LDAP group attribute for members in groupOfUniqueNames that uses the value of DistinguishedName.

     

    I hope the above information was useful!

    Expand Post
    Selected as Best
    • vir8k (vir8k)

      Thank you. I was hoping that there would be a way to call the users of the group because listing out every user is unmanagable for a variety of scenarios. Not sure where Okta wants to take this long term but not having the capability to query groups for their users, without hitting API limits, hampers the ability to use the service. Let me know if you find anything else and I appreciate you looking into this.

      Expand Post
This question is closed.
Loading
LDAP Query for all uniquemembers of a group