OXU IDP

Set up Role-Based Access Control (RBAC) for your app

Learn how to configure Role-Based Access Control (RBAC) in OXU Developer to define protected resources, manage permissions and privileges, and control which application clients can access specific capabilities.

1. What you'll do

In this guide, you'll learn how to:

  • Understand the RBAC setup process in OXU Developer.
  • Register a Resource Server for your application.
  • Create and manage API and UI Screen permissions.
  • Group permissions into reusable privileges.
  • Organize privileges into categories.
  • Map privileges to application clients.
  • Prepare your access control configuration for OXU Workspace.

2. Why it matters

Role-Based Access Control (RBAC) helps you define what users and application clients are allowed to access or do within your application.

By configuring RBAC in OXU Developer, you can:

  • Protect application resources: Define access rules for API endpoints and UI screens.
  • Manage permissions centrally: Organize protected actions and resources in one place.
  • Simplify authorization: Group related permissions into privileges that represent meaningful capabilities.
  • Control client capabilities: Specify which privileges each application client can use.
  • Support Workspace access: Prepare privileges that can be assigned to Workspace roles.

Important: Defining permissions and privileges in OXU Developer does not automatically enforce authorization in your application's backend or frontend. Your application must integrate with the relevant authorization mechanism and validate access before allowing protected actions.

3. Before you begin

Make sure you have:

  • An active OXU account.
  • Permission to manage applications in OXU Developer.
  • An existing application in OXU Developer.
  • A clear understanding of the APIs, UI screens, and actions your application needs to protect.

If you plan to configure UI Screen permissions, make sure the relevant application client has been created under Authentication → Clients.

4. Steps

Setting up RBAC involves the following configuration steps:

StepConfigurationPurpose
1Resource ServerRegister the protected API or backend of your application.
2PermissionsDefine protected API actions and UI screens.
3PrivilegesGroup related permissions into grantable capabilities.
4Privilege CategoriesOrganize privileges into understandable feature groups.
5Client MappingControl which application clients can use specific privileges.

After completing these steps, you can configure an Access Template to recommend default privileges for Workspace roles.


5. How to?

Step 1. Open RBAC Quick Start

  1. Sign in to OXU Developer.
  2. Navigate to App management.
  3. Select the application you want to configure.
  4. In the left sidebar, expand Access control.
  5. Select Quick start.

The Quick Start page provides an overview of the RBAC setup process and explains how permissions, privileges, and client mapping work together.

Click Start RBAC setup to begin.

Step 2. Declare a Resource Server

A Resource Server represents the backend or API resources associated with your application.

To declare a Resource Server:

  1. Navigate to Access control → Resource server.
  2. Complete the required information.
FieldRequiredDescription
NameYesA recognizable name for your application's API or backend.
IdentifierYesA unique identifier representing the Resource Server.
DescriptionNoExplains the purpose of the protected resource.

Example:

  • Name: Helpdesk API
  • Identifier: https://api.helpdesk.example.com
  • Description: Backend APIs for managing helpdesk tickets and documents.
  1. Click Declare resource server.

Once declared, you can define permissions and privileges associated with your application's resources.

Step 3. Create and manage Permissions

Permissions represent the smallest protected resources or actions in your application.

OXU supports two types of permissions:

TypePurposeExample
APIsProtect backend API endpoints and operations.Read documents, create tickets, delete records.
UI ScreensDefine access to specific application screens.Reports screen, Admin Console screen.

Navigate to Access control → Permissions to begin.

3.1. Add API permissions

  1. Select the APIs tab.
  2. Click Add API.
  3. Complete the required fields.
FieldRequiredDescription
Permission codeYesUnique code identifying the protected action.
Permission nameYesHuman-readable name describing the action.
APIYesOne or more API endpoints associated with the permission.

Example:

  • Permission code: app:api:document:read:v1
  • Permission name: Read documents
  • API: GET/api/documents

Click Add API to save.

You can create additional permissions for other actions, such as creating, updating, or deleting documents.

3.2. Import API permissions from JSON

If your application has multiple API permissions, you can create them in bulk.

  1. Open the APIs tab.
  2. Click Import APIs.
  3. Paste a JSON array containing your permission definitions.

Example:

[
  {
    "code": "app:api:document:read:v1",
    "name": "Read documents",
    "apis": ["GET/api/documents"]
  },
  {
    "code": "app:api:document:create:v1",
    "name": "Create document",
    "apis": [
      "POST/api/documents",
      "PUT/api/documents"
    ]
  }
]
  1. Click Review new APIs.
  2. Review the permission definitions and complete the import.

This method is useful when configuring multiple protected endpoints at once.

3.3. Add UI Screen permissions

UI Screen permissions define access to specific screens within your application.

  1. Navigate to Access control → Permissions.
  2. Select the UI Screens tab.
  3. Click Add UI Screen.
  4. Define the required screen permission information.
  5. Associate the UI Screen permission with the relevant application client.
  6. Save the configuration.

Example:

  • Permission code: app:screen:reports:view:v1
  • Permission name: Reports screen
  • Screen: screen:reports
  • Client: Helpdesk Web

Important: UI Screen permissions must be associated with an application client. If no suitable client exists, create and configure one under Authentication → Clients before completing the mapping.

3.4. Import UI Screen permissions from JSON

You can also import multiple UI Screen permissions.

  1. Open the UI Screens tab.
  2. Click Import UI Screens.
  3. Paste your JSON array.

Example:

[
  {
    "code": "app:screen:reports:view:v1",
    "name": "Reports screen",
    "screens": ["screen:reports"],
    "clientId": "YOUR_CLIENT_ID"
  },
  {
    "code": "app:screen:settings:view:v1",
    "name": "Settings screen",
    "screens": ["screen:settings"],
    "clientId": "YOUR_CLIENT_ID"
  }
]

Replace YOUR_CLIENT_ID with the ID of the client associated with your application screens.

  1. Click Review new UI Screens.
  2. Review the information and complete the import.

3.5. Manage existing permissions

After creating permissions, they appear in the corresponding APIs or UI Screens tab.

Each permission displays information such as:

  • Permission name.
  • Permission code.
  • Number of associated APIs or screens.
  • Associated Client ID, where applicable.

You can:

  • Edit: Update the permission's information.
  • Delete: Remove the permission when it is no longer required.

Important: Removing a permission may affect privileges that reference it. Review its dependencies before deleting it.


Step 4. Create and manage Privileges

A privilege groups one or more permissions into a capability that can be granted to users, roles, or application clients.

For example, instead of assigning individual document permissions, you can create a Manage documents privilege.

4.1. Create a privilege

  1. Navigate to Access control → Privileges.
  2. Click Add privilege.
  3. Complete the following fields.
FieldRequiredDescription
Privilege codeYesUnique identifier for the privilege.
Privilege nameYesHuman-readable name describing the capability.
DescriptionNoExplains what the privilege allows users to do.
CategoryNoGroups the privilege under a feature category.
PermissionsYesOne or more permissions included in the privilege.

Example:

  • Privilege code: privilege:app:document:manage:v1
  • Privilege name: Manage documents
  • Description: Create, edit and delete documents
  • Category: Document management

Select the permissions that belong to this privilege:

  • Read documents.
  • Create document.
  • Delete document.

Click Add privilege to save.

4.2. Manage privileges

Once created, privileges appear on the Privileges page.

Each privilege displays:

  • Privilege name.
  • Privilege code.
  • Number of associated permissions.

You can:

  • Add privilege: Create a new privilege.
  • Edit: Update the privilege's details or permission assignments.
  • Delete: Remove a privilege that is no longer needed.

Important: Updating or deleting a privilege may affect clients, access templates, or Workspace roles that reference it. Review the impact before making changes, especially when your application is Active.


Step 5. Organize Privilege Categories

Privilege Categories help organize privileges into logical groups that are easier for developers and Workspace Administrators to understand.

For example, you can organize privileges under categories such as:

  • Document management.
  • Administration.
  • Reporting.

5.1. Create a privilege category

  1. Navigate to Access control → Privilege categories.
  2. Click Add category.
  3. Enter the category information.
  4. Save the category.

5.2. Map privileges to a category

  1. Find the category you want to manage.
  2. Click Map privilege.
  3. Select the privileges that belong to the category.
  4. Save your changes.

Example:

CategoryPrivileges
Document managementView documents, Manage documents
AdministrationAdminister workspace
ReportingReport viewing and export privileges

You can edit categories, remove privilege mappings, or delete categories when they are no longer required.

Note: Privilege Categories are used to organize capabilities. They do not grant permissions by themselves.


Step 6. Configure Client Mapping

Client Mapping determines which application clients are allowed to use specific privileges.

This helps you control access at the application-client level.

For example, you may want your web and mobile clients to manage documents, while a background synchronization client can only view them.

6.1. Open Client Mapping

  1. Navigate to Access control → Client mapping.
  2. Review the Client Privilege Mapping (API & Data Access) table.

The table displays:

  • Privileges organized by category.
  • Application clients.
  • The current privilege assignments for each client.

6.2. Assign privileges to clients

  1. Find the privilege you want to configure.
  2. Locate the column for the relevant application client.
  3. Select the checkbox to allow that client to use the privilege.
  4. Clear the checkbox to remove the assignment.
  5. Click Save.

Example:

PrivilegeHelpdesk WebHelpdesk MobileReport Sync
View documentsAllowedAllowedAllowed
Manage documentsAllowedAllowedNot allowed
Administer workspaceAllowedAllowedNot allowed

In this example:

  • Helpdesk Web and Helpdesk Mobile can use all three privileges.
  • Report Sync can only use the View documents privilege.

The application must still enforce authorization based on the effective permissions available to the client and user.

Important: Client Mapping controls which privileges a client may use. It does not automatically assign those privileges to every user of that client.


6. What's next?

After completing the Resource Server, Permissions, Privileges, Privilege Categories, and Client Mapping configurations, you can continue with the following steps.

Configure Default Access Template

Define which privileges should be recommended for Workspace roles when your application is added to OXU Workspace.

Workspace Administrators can accept your recommended access settings or customize them for their Workspace.

Related guide: Set up Default Access Template.

Make your application available in Workspace

To allow users to access your application through OXU Workspace:

  1. Configure your application's Workspace entry.
  2. Complete the required setup and validation.
  3. Review and activate your application.
  4. Make the application available to the appropriate Workspaces.

Related guide: Workspace Integration Overview.

Test your access control configuration

Before making your application available to users, verify that:

  • Protected resources and permissions are correctly defined.
  • Privileges contain the expected permissions.
  • Client Mapping allows only the intended capabilities.
  • Your application enforces authorization correctly.
  • Unauthorized actions are rejected.

Once these steps are complete, your RBAC configuration is ready to support application authorization within the OXU ecosystem.