Roles in the Document Generator: Overview of Methods
Scope:
documentgeneratorWho can execute the methods: a user with permission to modify the document generator settings
Roles define access to settings, templates, and documents in the Document Generator.
In the request parameter permissions for the methods documentgenerator.role.add and documentgenerator.role.update, use the keys in uppercase:
SETTINGS.MODIFYTEMPLATES.MODIFYDOCUMENTS.MODIFYDOCUMENTS.VIEW
In the response of the method documentgenerator.role.get, these same parameters are returned in lowercase:
settings.modifytemplates.modifydocuments.modifydocuments.view
Access levels:
""— no accessA— only their own itemsD— their own and colleagues in the departmentX— full access
Levels A and D apply only to templates.modify. For other actions, "" or X is used.
Binding a role to users and groups is done using the method documentgenerator.role.fillaccesses through the accesses array with access codes accessCode. For example:
U1— user with ID1D1— department with ID1UA— all authorized users
|
Method |
Description |
|
Adds a role and returns its data with permissions |
|
|
Updates a role and returns the current role data |
|
|
Returns a role by identifier along with permissions |
|
|
Returns a list of roles without detailed permission composition |
|
|
Deletes a role by identifier |
|
|
Completely overwrites role bindings to access codes |