Skip to main content

Role, attribute, and environment definitions

These features define roles and environments for SaaS authorization and additional fields for users and tenants.
Use the roles and environments assigned to users to control access to pages and features in your SaaS application.

Related API links use operation names from Auth API.

Role definitions​

Define roles such as administrator or regular user and assign them per tenant and environment.
Define roles in the SaaS Development Console and assign or remove them in the SaaS Operations Console.
Your application implements access control for its pages and features based on those roles.

FeatureDetailsRelated APIs
List, create, update, and delete rolesDefine role names and display names. Updates change the display name; the default admin role cannot be deleted.
References: Roles
GetRoles CreateRole UpdateRole DeleteRole
Assign and remove tenant user roles per environmentAssign or remove roles for an existing tenant user in a specified environment. The same user can have different roles in each tenant and environment.
References: Role Management / (New Screen) Search, Edit, Create, or Assign Users to Tenants
CreateTenantUserRoles DeleteTenantUserRole

Attribute definitions​

Define fields for additional user or tenant information, such as names, departments, or notes.
Define tenant user and tenant attributes in the SaaS Development Console; define SaaS user attributes through SaaSus API.
Defining attribute fields is separate from updating values for individual users or tenants.

FeatureDetailsRelated APIs
Define SaaS user attributesDefine attribute fields, such as a user name, for SaaS users. For updating values, see User management: Updating user attributes.
References: User management
CreateSaasUserAttribute
Define, list, and delete tenant user attributesDefine user attribute fields that can hold different values per tenant membership. For membership-specific values, see Update tenant user attributes in User management.
References: User Attributes / User management
GetUserAttributes CreateUserAttribute DeleteUserAttribute
Define, list, and delete tenant attributesDefine additional tenant attribute fields. For individual tenant values, see Configure tenant attributes in Tenant management.
References: Tenant Attributes / Tenant management
GetTenantAttributes CreateTenantAttribute DeleteTenantAttribute

User environment definitions​

Define the environments users can access and their roles in each environment. For example, assign a user the administrator role for testing and the regular user role for production, and have your SaaS application determine which operations are allowed.
These definitions are separate from the environments you switch between in the SaaSus Platform Console.

FeatureDetailsRelated APIs
List, retrieve, create, update, and delete user environment definitionsManage environment IDs, names, and display names. The default production environment (ID: 3) cannot be deleted.
References: User Environment Definitions
GetEnvs GetEnv CreateEnv UpdateEnv DeleteEnv