
User16681662815109981047 (Customer) asked a question.
Found below the Okta document for getting the number of users and apps assigned with a Group.
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.
Is it expected behavior or a bug in APIs?

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.
Thanks @flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery) for the response.
I mean that expand=app, stats should provide two dictionaries under "_embedded" dictionary as seen below from the Okta document.
https://support.okta.com/help/s/article/Is-there-an-API-that-returns-the-number-of-users-in-a-group?language=en_US
Now, stats dictionary is received as expected, but app dictionary containing application information is not getting collected (attached postman response in the question).
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.