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:
| Step | Configuration | Purpose |
|---|---|---|
| 1 | Resource Server | Register the protected API or backend of your application. |
| 2 | Permissions | Define protected API actions and UI screens. |
| 3 | Privileges | Group related permissions into grantable capabilities. |
| 4 | Privilege Categories | Organize privileges into understandable feature groups. |
| 5 | Client Mapping | Control 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
- Sign in to OXU Developer.
- Navigate to App management.
- Select the application you want to configure.
- In the left sidebar, expand Access control.
- 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:
- Navigate to Access control → Resource server.
- Complete the required information.
| Field | Required | Description |
|---|---|---|
| Name | Yes | A recognizable name for your application's API or backend. |
| Identifier | Yes | A unique identifier representing the Resource Server. |
| Description | No | Explains 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.
- 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:
| Type | Purpose | Example |
|---|---|---|
| APIs | Protect backend API endpoints and operations. | Read documents, create tickets, delete records. |
| UI Screens | Define access to specific application screens. | Reports screen, Admin Console screen. |
Navigate to Access control → Permissions to begin.
3.1. Add API permissions
- Select the APIs tab.
- Click Add API.
- Complete the required fields.
| Field | Required | Description |
|---|---|---|
| Permission code | Yes | Unique code identifying the protected action. |
| Permission name | Yes | Human-readable name describing the action. |
| API | Yes | One 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.
- Open the APIs tab.
- Click Import APIs.
- 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"
]
}
]- Click Review new APIs.
- 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.
- Navigate to Access control → Permissions.
- Select the UI Screens tab.
- Click Add UI Screen.
- Define the required screen permission information.
- Associate the UI Screen permission with the relevant application client.
- 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.
- Open the UI Screens tab.
- Click Import UI Screens.
- 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.
- Click Review new UI Screens.
- 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
- Navigate to Access control → Privileges.
- Click Add privilege.
- Complete the following fields.
| Field | Required | Description |
|---|---|---|
| Privilege code | Yes | Unique identifier for the privilege. |
| Privilege name | Yes | Human-readable name describing the capability. |
| Description | No | Explains what the privilege allows users to do. |
| Category | No | Groups the privilege under a feature category. |
| Permissions | Yes | One 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
- Navigate to Access control → Privilege categories.
- Click Add category.
- Enter the category information.
- Save the category.
5.2. Map privileges to a category
- Find the category you want to manage.
- Click Map privilege.
- Select the privileges that belong to the category.
- Save your changes.
Example:
| Category | Privileges |
|---|---|
| Document management | View documents, Manage documents |
| Administration | Administer workspace |
| Reporting | Report 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
- Navigate to Access control → Client mapping.
- 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
- Find the privilege you want to configure.
- Locate the column for the relevant application client.
- Select the checkbox to allow that client to use the privilege.
- Clear the checkbox to remove the assignment.
- Click Save.
Example:
| Privilege | Helpdesk Web | Helpdesk Mobile | Report Sync |
|---|---|---|---|
| View documents | Allowed | Allowed | Allowed |
| Manage documents | Allowed | Allowed | Not allowed |
| Administer workspace | Allowed | Allowed | Not 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:
- Configure your application's Workspace entry.
- Complete the required setup and validation.
- Review and activate your application.
- 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.