Hi,
I want to fetch all the users present into a group which is mapped with JSM product. Please provide API for this.
Hi @d_b_kumar_chauhan ,
I know you can use the following endpoint GET Get groups in an organization to list out all groups and find the correct group ID. After that, you can use endpoints such as:
GET /rest/api/3/group/member?groupId={groupId}
to get all users from a specific group using the group ID that you've got from the previous endpoint.
You could probably also use this one GET Get group role assignments to then see app assignment (e.g., is it assigned to JSM app), and once you have that, then switch to fetching group members.
It probably does need to fetch everything and then iterate through the results, but maybe there's a quicker way you could use 👀 (hopefully someone will chime in to the discussion with their insights)
Cheers,
Tobi
Hello @d_b_kumar_chauhan
GET /rest/api/3/group/member?groupId=<groupId>
You can also use groupname
That returns the members of the group as a paginated response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.