The AddTaskToRole() function of the sySecurityTaskRole form adds a task to the specified security role.
AddTaskToRole(role_ID, task_ID)
• role_ID – A string specifying the ID of the security role to which a task is being added.
• task_ID – A string specifying the ID of the task being added.
An integer indicating whether the task was added to the security role. The value corresponds to one of the following constants:
Constant |
Description |
---|---|
OKAY |
The task was added successfully |
DUPLICATE |
The task already exists |