Site users management - Add / edit user module permission
OVERVIEW
Method to allocate module permissions to a user
Request URL
POST /api/3/sites/{siteid}/users/{userid}/modulepermissions
Request parameters
Parameter | Value | Description |
---|---|---|
siteid | integer | The ID of the site. The siteid can be obtained by calling the get site list API |
userid | integer | The ID of the user. The userid can be obtained by calling get all site users API |
Request Body
The request body should have a module permissions object.
Response
The API returns a 200 OK http response if it's successful, otherwise an error object and error code are returned.
Hello.
I´m trying to give access to Files module to a specific user using this body:
But I´m getting this error:
https://collaborate............com/garrigues/api/4/error/18619913
As you can see, it says that the user does not have access to the modules permission, but that´s what i actually want to do, give him permissions to the files module.
I´ve checked that the user exists and i can give the permissions "manually", and the API user we´re using is "Site Admin" so i guess it´s more than enough to do this.
Am I missing something?
Thanks in advance.
Comments
1 Comments