3.1.1.1.38.2.4 GetBuiltinUserRoles

The GetBuiltinUserRoles procedure retrieves all the built-in user role definitions that are in the table.

There are no input parameters for this function.

The following is the output parameter from this procedure.

Result_userRoles: An array of UserRoles.

The following are the processing steps involved:

  1. Retrieve all the rows in the ADM_RoleDefinitionTable that have IsBuiltInRole set to TRUE.

  2. Initialize Result_userRoles as a collection of UserRoles.

  3. For each row that has been retrieved, perform the following steps:

  4. Call the GetUserRoleById procedure of ADM_RoleDefinitionTable by passing RoleId of the row as Param_roleId.

  5. Add the Result_role to the Result_userRoles collection.

  6. Return Result_userRoles as the output of the procedure.