system.kanoa.security.addRole
Description
Adds a user role.Syntax
addRole(roleName, userId)- roleName (String) - Role name.
- userId (Integer) - User ID.
- roleId (Integer).
Code Example
# Example Usage:
roleId = system.kanoa.security.addRole('Operator', 123)