Is there a way to pull the info on the "current assignments" report via API Skip to main content
https://support.okta.com/help/answers?id=9062a000000dfmqqag&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:
Nicole DotyNicole Doty 

Is there a way to pull the info on the "current assignments" report via API

Specifically I am looking to dump the users assigned to an app and have the field "assginment type" included via the API/powershell/etc.  Any assistance is appreciated!
Silviu MuraruSilviu Muraru (Okta, Inc.)
Hi,


My name is Silviu and I am a Technical Support Engineer (Tier II) at Okta.
Yes, there are a couple of ways of achieving this through API calls.
You can:
- list users assigned to an app via GET-type calls like:
{{url}}/api/v1/apps/{{appId}}/users

OR
- list apps assigned to a user by the help of:
{{url}}/api/v1/apps?filter=user.id+eq+"{{userId}}"&expand=user/{{userId}}


Now, for the types of app-assignment (like individual, group assignment) you might have to open up a case so that it can reach the Developer Support Team within Okta. I'm not quite sure if that is achievable. Still you can use tools like Postman to leverage API calls like this one to get a list of assigned groups:
{{url}}/api/v1/apps/{{appId}}/groups
Perhaps this helps you reach the desired use-case of seeing the group type assignment.
You can find calls like these into our API collections you can upload into Postman once you configure it to apply to your org, here.
For more information on the topic please open up a case with us and we will handle it accordingly.

Wish you all the best in your work, Nicole!


Thanks,
Silviu Muraru
Technical Support Engineer | Okta
Dylann FezeuDylann Fezeu (Customer First Programs)
Hello,

Thanks for posting your inquiry in Okta Community Portal.

​If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer." 

Thank you,

​Dylann Fezeu
OHC Team
Scott CrowleyScott Crowley
@Silviu  is there a way via the API to get a listing of the current attribute mappings etc.. for specific apps that are integrated with OKTA?