The system roles cannot be modified or deleted. However, you can create new roles, or modify the sample roles.

To create new roles using the API, use the following steps.

Procedure

  1. Starting with the ServiceContent object in ServiceInstance.content, obtain a managed object reference to the AuthorizationManager for the server.
  2. Invoke the AddAuthorizationRole method. Parameters are a reference to AuthorizationManager, a name for the role (as a string), and an array of privileges (array of strings) that should be assigned to the role.

    AddAuthorizationRole returns an integer (xsd:int) value for the roleId that the system assigns to the newly defined role.

  3. In subsequent code, use the roleID to assign the role to specific users or groups.