How to add user to Role using REST?

Kosntantine Dobromilskiy asked on February 18, 2015 10:21

How to add user to Role using REST?

Correct Answer

Kosntantine Dobromilskiy answered on February 18, 2015 13:45

Thank you Brenden, but you misunderstood me, I need the REST api to add user to role (not the role with permissions to do the REST requests). Got the answer from support already, re-posting it here:

Yes, this is possible. You can send POST request to:

/rest/cms.userrole

with data like:

as a result, you will get something like:

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on February 18, 2015 13:32

There isn't a REST role, you'd have to create it then give permissions to the objects you're allowing them to access. Then assign your REST user to the REST role. Check out the documentation, it states in the Basic Authentication section Once authenticated, the system allows the REST request to perform operations depending on the specified user's privilege level and permissions.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 18, 2015 14:42

Yes I did misunderstand, thank you for the clarification. There are a few help docs out there although not a lot on posting data for examples.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.