How can I add/remove an existing user role through the REST service in Marklogic? if possible can you share the sample code?
I need to update the existing user roles through REST service in Marklogic
20 views Asked by Balan At
1
How can I add/remove an existing user role through the REST service in Marklogic? if possible can you share the sample code?
You can use the REST endpoint PUT /manage/v2/users/{id|name}/properties.
For example, if you wanted to update the user test and assign them the admin role (and update the user description):
with the following JSON in a file called payload.json: