Documentation

documentgenerator.role.fillaccesses

documentgenerator.role.fillaccesses(accesses = [])

The method defines set of roles and their bindings.



Attention! This method does not update current bindings. It always re-writes full details.

Parameters

Parameter Description
accessesArray of role bindings.
  • accesses[roleId] - Role ID.
  • accesses[accessCode] - symbolic code for binding.


Example

"accesses": [
    {
        "roleId": "1",
        "accessCode" : "U1", // bind to user with ID 1
    },
    {
        "roleId": "2",
        "accessCode" : "D1", // bind to department with ID 1
    }
]


© «Bitrix24», 2001-2024