<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
0D54z00008dGThiCAGOkta Classic EngineAPI Access ManagementAnswered2023-01-06T19:28:51.000Z2023-01-05T12:46:25.000Z2023-01-06T19:28:51.000Z

For Groups Rest APIs, parameter expand=app,stats not working as expected

Found below the Okta document for getting the number of users and apps assigned with a Group.

https://support.okta.com/help/s/article/Is-there-an-API-that-returns-the-number-of-users-in-a-group?language=en_US

 

However, while using expand=app,stats parameter in the API call for Group, I'm getting a stats dictionary having a count of assigned users and apps of that group but not getting the app dictionary.

 

/help/servlet/rtaImage?refid=0EM4z000004enGs

 

Is it expected behavior or a bug in APIs?


  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @User16681662815109981047 (Customer)​,

     

    Thank you for posting on the Okta community page!

     

    I have done some tests on my own environment with the expand=app,stats and I have received the same result where the stats returned where "usersCount", "appsCount", "groupPushMappingsCount" and ""hasAdminPrivilege", therefore I assume that this would be expected behaviour for Okta Groups API since the response is the same as the example provided in the documentation.

     

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Thank you for the additional information @User16681662815109981047 (Customer)​!

     

    Pardon me for the confusion! I have not noticed that app dictionary is not being collected because on my end I have tested with the List Groups API call where that information is showing up in the response. I have tried the Get Group by ID API call as well to see if the information appears and indeed I receive the same behaviour where the app dictionary stats are not being collected, therefore my recommendation would be to open a case with the Okta Support team to investigate this functionality.

     

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
This question is closed.
Loading
For Groups Rest APIs, parameter expand=app,stats not working as expected
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply