on 2024 Oct 01 9:55 AM
Hi,
I want to get usergroups of a user. I am trying v1/users/{userId}/userGroups but it return 404. There are couple of endpoints like v1/userGroups/<usergroup_id>/users but it return users in a userGroup. I need to get user groups of a user. How can I achieve this using rest api?
Request clarification before answering.
You can use cmsquery (http://<baseURL>/v1/cmsquery) and write the desired query in the body.
For information on using CMS query with RESTful API, see CMS Query
Example query:
....
I hope this helps you get on the right track.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is not possible with RESTful, you have to delete the user from each group he belongs to individually
DELETE http://<baseURL>/v1/usergroups/<usergroup_id>/users
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.