XF 2.2 Get secondary_group_ids for a user

ppissanetzky

New member
It seems that users/find-name and users/:id/ do not include secondary_group_ids in their response. I even tried users/:id/ with
the XF-Api-User header set to the same id and using a super key.

Is there a way to get another user's secondary_group_ids?
 
User groups are considered part of the "internal" profile in that it's something that is only directly exposed to administrators. (We never expose user groups or group memberships directly to users, even a user's own groups.) Thus, to see them, you either need to:

1. Access using a user that has "user" administrator permissions
2. Use a super user API key and make your requests with the api_bypass_permissions parameter as well.
 
Back
Top Bottom