
cltfg (cltfg) asked a question.
Currently auditing our LDAP groups and whats assigned in Okta, is there a way to pull a list of all the groups that are not assigned to any groups? There is the URL at admin/groups, which does show them, but there is no way to organize or sort groups. The API looks like it might be able too, but I'm not seeing a flag for assigned or not.

Hi Alex,
You can use the following API to list all groups in an Okta org " GET /api/v1/groups " . Then to filter it further and get the details of the applications assigned to those groups, you can use the following API that lists assigned applications to groups " GET /api/v1/groups/{{groupId}}/apps ". So you may have to create a script around these two APIs to get your filtered report.
I hope this is helpful. If you need any further assistance, feel free to open a case with Okta Support.
More details available on our API pages:
https://developer.okta.com/docs/api/resources/groups/#list-groups
https://developer.okta.com/docs/api/resources/groups/#list-assigned-applications
Thanks.