Find All Groups assigned to a Directory Skip to main content
https://support.okta.com/help/answers?id=9062a000000quxyqak&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Nicholas GlazerNicholas Glazer 

Find All Groups assigned to a Directory

I can see in the GUI of the Okta Admin Groups page there are "Directories" listed in the columns. People | Apps | Directories. But I do not see a way to list this "Directories" via API call.

One of the things I would like to be able to do is easily identify any Groups which are assigned to our AD directory.

When getting {{url}}/api/v1/groups/{{groupID}} I get the JASON back but do not see anything that would identify this group being assigned to a directory
Justin BergezJustin Bergez (Okta, Inc.)
Hi Nick,

The most effective method would be the List Assigned Applications query:
GET {{url}}/api/v1/groups/{{groupID}}/apps

This will return the directory name and label for any specified group.

If you run into any issues or have any follow-up questions, feel free to open a case with Okta Support.

Thank you,

Justin M. Bergez
Sr. Technical Support Engineer | Okta, Inc.
1501885747483_PastedImage
Nicholas GlazerNicholas Glazer
Thanks for this info. Is there a way do this for all group apps or would I have to script this out to loop through every {{groupID}} I have?