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
Hi Tomislav Tobijas,
Thanks for replying, But I did not have the group id as well as group name. I have only user account id. So is there any Api to fetch list of groups (App access, Administration access, Guest access, Customer access) which is mapped with JSM product into App access?
Thanks
Dipendra Chauhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.