Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

API-Call for adding users into roles

Open willihelm opened this issue 9 years ago • 1 comments

Rocket.Chat Version: 0.52.0 Running Instances: 1 DB Replicaset OpLog: Disabled Node Version: v4.5.0

I would like to have the possibility to add users to roles using an API-Call. I wrote a script that adds users to specified rooms based on their LDAP-Group using the API and would like to have the possibility to do so with roles too.

willihelm avatar Mar 03 '17 12:03 willihelm

We currently have that with the rest api: https://rocket.chat/docs/developer-guides/rest-api/users/update#user-update just update the roles property and you'll be good.

graywolf336 avatar Mar 03 '17 14:03 graywolf336