The CreateSecurityRole() function of the sySecurityRole form creates a new security role.
CreateSecurityRole(role_ID, role_name, description)
• role_ID – A string specifying the ID of the role being created.
• role_name – A string specifying the name displayed for the security role.
• description – A string specifying the description for the security role.
An integer indicating whether the security role was added. The value corresponds to one of the following constants:
Constant |
Description |
---|---|
OKAY |
The security role was added successfully |
DUPLICATE |
The security role already exists |