<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
0D50Z00008G7VCiSANOkta Classic EngineIntegrationsAnswered2018-09-05T01:28:47.000Z2017-03-28T14:49:03.000Z2017-03-28T14:49:03.000Z
Fetch users associated with an application along with all the groups user is part of using Okta SDK
Hi,

 

I am using Okta SDK to fetch the list of users associated with the application. I am using the following endpoint: {{url}}/api/v1/apps/{{appId}}/users

 

I am getting all the users and each user has a "_links" attribute that has app, group and user as keys. It seems that the group attribute shows only the first group associated with that user. If user is part of 3 groups and all the groups are associated with the application, it does not show all the groups.

 

What is the best way to fetch user and it's groups for an application?

  • Hi Jay,

     

    The current Collection of Okta API does not include a way to fetch users associated with an application along with all the groups user is part of.

     

    {{url}}/api/v1/apps/{{appId}}/users - get the users and {{url}}/api/v1/apps/{{appId}}/groups to get the groups.
    Expand Post
This question is closed.
Loading
Fetch users associated with an application along with all the groups user is part of using Okta SDK