Give permission on a document

POST https://{{host}}/athento/site/automation/Document.AddACE/

Gives a specific permission on a document to a user or a group.

IMPORTANT: The permissions given using this service will only work if the object permissions have been activated in the space of the document. Use object permissions attribute of a space.

Permissions

The user needs admin permission on the document.

Mandatory data

This web service requires at least:

  • input
  • "params" -> "user"
  • "params" -> "permission"

Input

This request needs as an input the UUID of the document on which permissions will be given to the user or group

Params

user

You can specify 2 differents things in this parameter:

  • A name of a user to which permissions will be given.
  • A name of a group to which permissions will be given

permission

Permission to be given to user or group. The available permissions are:

  • read_file: Permission to read the document.
  • write_file: Permission to write on the document.
  • admin_file: Permission to admin the document.

Request Body

{"input"=>"a7e7c74c-ca91-41d0-9f47-c4960ed99b13", "params"=>{"user"=>"username1", "permission"=>"write_file"}}