cancel
Showing results for 
Search instead for 
Did you mean: 

Why doesn't the 'systemusers' API does not include user group information, and is there an alternative?

kumararaja
Novitiate I

I'm using the /systemusers API to fetch user data, but I noticed there's no attribute that shows which user groups a user belongs to. Is there a reason why group membership isn't included in the response? Also, is there an alternative API call to fetch users along with their group details more efficiently?

1 REPLY 1

trevorjc
JumpCloud Employee
JumpCloud Employee

hey there,

hopefully i partially answered this in my other reply, but you can use https://console.jumpcloud.com/api/v2/users/{user_id}/memberof to get the user's group membership

you can use https://console.jumpcloud.com/api/v2/usergroups/{group_id}/members to modify a user group's membership

Type a product name