<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
0D54z0000AKF2tgCQDOkta Classic EngineAPI Access ManagementAnswered2025-03-31T15:06:54.000Z2025-03-12T12:43:13.000Z2025-03-31T15:06:54.000Z
OKTA API is not returning all the groups assigned to the user

Hi @Everyone,

 

I am using "LIST ALL GROUPS" API (https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserResources/*tag/UserResources/operation/listUserGroups) to get all the groups assigned to the user. However, I'm getting only the first 200 groups assigned to the user. I have explored if there is any pagination that can be provided to get the rest of the groups. But there is no mention of such query parameter for the API. Can someone please help to find a way to get all the groups assigned to the user.

 

/help/servlet/rtaImage?refid=0EM4z000007IsO8


  • User17157611498146715886 (Customer Support Online Community and Social Care)

    Hello @Naga KishoreI.14293 (Customer)​ , thank you for contacting Okta Community.

     

    There is a limit parameter controlling the number of results per page. Pagination is also supported. Our Developer colleagues have documented this in more detail:

    Groups - limit

    Reference overview - Pagination

     

    For more insight into this topic, I advise reaching out via devforum.okta.com

     

    While we'll do our best to answer your questions here, this medium is more inclined towards Okta's core products and features (non-developer work).

     

    Regards. 

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
  • User17157611498146715886 (Customer Support Online Community and Social Care)

    Hello @Naga KishoreI.14293 (Customer)​ , thank you for contacting Okta Community.

     

    There is a limit parameter controlling the number of results per page. Pagination is also supported. Our Developer colleagues have documented this in more detail:

    Groups - limit

    Reference overview - Pagination

     

    For more insight into this topic, I advise reaching out via devforum.okta.com

     

    While we'll do our best to answer your questions here, this medium is more inclined towards Okta's core products and features (non-developer work).

     

    Regards. 

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
This question is closed.
Loading
OKTA API is not returning all the groups assigned to the user