> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/academy/tier-2-core-skills/m07-governance-rbac-ai-gateway-configuration/lab-2-configure-rbac-roles-and-enforce-separation.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Lab 2: Configure RBAC roles and enforce separation of duties

Hands-on lab for lesson 2 of module M07, configure rbac roles and enforce separation of duties.

{% @uptiq-training/training-labels content="Module 7 | brand
Lesson 2 of 8 | brand
Lab 2 | success
18 minutes | neutral
Bloom level Apply | neutral" %}

{% @uptiq-training/training-navigator title="M07 Governance, RBAC & AI Gateway Configuration" content="Lesson 1: Understand the Platform's governance architecture and Control Center | soon
Lesson 2: Configure RBAC roles and enforce separation of duties | soon
Lab 2: Configure RBAC roles and enforce separation of duties | current
Lesson 3: Set up Microsoft SSO and Entra ID integration | soon
Lab 3: Set up Microsoft SSO and Entra ID integration
Lesson 4: Knowledge check 1 | soon
Lesson 5: Configure the AI Gateway for production model families | soon
Lab 5: Configure the AI Gateway for production model families
Lesson 6: Configure agent authentication and widget identity tokens | soon
Lab 6: Configure agent authentication and widget identity tokens
Lesson 7: Configure and validate policy-based guardrails | soon
Lab 7: Configure and validate policy-based guardrails
Lesson 8: Module assessment | soon" %}

## Lab overview

**Exercise title:** Configure RBAC Roles and Enforce Separation of Duties

**Difficulty level:** Apply (Bloom Level 3 — you will execute a procedure independently, not just recognize or describe it)

**Estimated hands-on time:** 18 minutes (4-minute demo + 10-minute guided lab + 2-minute reflection + 2-minute formative check)

**What you will build:** Two custom roles — Builder and Approver — in Control Center Admin, with capability assignments that enforce separation of duties between the agent development and agent approval functions. You will assign the Builder role to your sandbox account and verify that the Approve agent publishing action is disabled for that role.

**Prerequisites:**

* Your sandbox account must be active and accessible before you begin. Access is invite-only — confirm you have received and accepted your sandbox invitation.
* Your sandbox account must hold Account Admin or Org Admin access to create roles and manage users. Confirm this with your instructor before starting.
* No prior lab completion is required for this exercise.

## Your sandbox environment

**Environment access URL:** `<provided by your instructor>`

### Connection details

| **Field**                              | **Where to find it**                                                                |
| -------------------------------------- | ----------------------------------------------------------------------------------- |
| **Sandbox account email**              | Your invitation email                                                               |
| **Temporary password (first sign-in)** | Your invitation email — you will be prompted to set a new password on first sign-in |
| **Account name**                       | Displayed in the account/project switcher in the top navigation bar after sign-in   |

### Pre-provisioned resources — no setup required

The following are already configured in your sandbox. You do not need to create or modify them before starting this lab:

* Your sandbox user account (invited and active)
* The eight standard the Uptiq Platform roles (Viewer, Billing Manager, Approver, Developer, Governance Manager, Auditor, Account Admin, Organisation Admin) — these are built into the platform and cannot be deleted
* Access to Control Center → Admin (your account holds Account Admin or Org Admin access, confirmed as a prerequisite above)

{% hint style="info" %}
**Concept:** The eight standard roles are account-wide and ship with every deployment. This lab adds two custom roles on top of them — Builder and Approver — tailored to your bank's separation-of-duties requirement. Custom roles are created by Org Admins and appear under "Custom Roles" in the Admin section.
{% endhint %}

## Configuration template

Use this table as your reference while completing Procedures 1 and 2. Each row is a capability you will either assign or deliberately withhold.

### Builder Role — Capability Checklist

| **Capability**                         | **Assign?**         | **Notes**                                                                              |
| -------------------------------------- | ------------------- | -------------------------------------------------------------------------------------- |
| **Build an agent**                     | ✅ Yes               | Allows creating and editing agents                                                     |
| **Manage agent versions**              | ✅ Yes               | Allows version management                                                              |
| **Publish an agent**                   | ✅ Yes               | Allows submitting an agent for publishing review                                       |
| **Trigger an agent**                   | ✅ Yes               | Allows running/trying an agent                                                         |
| **View agents**                        | ✅ Yes               | Allows viewing agents in the account                                                   |
| **Manage resource permissions**        | ✅ Yes               | Allows managing permissions on resources                                               |
| **See who has access (View user)**     | ✅ Yes               | Allows viewing user access                                                             |
| **Approve agent publishing**           | ❌ **Do NOT assign** | This is the Approver capability — assigning it to Builder defeats separation of duties |
| **Approve app publishing**             | ❌ **Do NOT assign** | Same reason                                                                            |
| **Approve knowledge graph publishing** | ❌ **Do NOT assign** | Same reason                                                                            |
| **Approve knowledge publishing**       | ❌ **Do NOT assign** | Same reason                                                                            |

### Approver Role — Capability Checklist

| **Capability**                         | **Assign?**         | **Notes**                                                                                |
| -------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------- |
| **Approve agent publishing**           | ✅ Yes               | Core approval capability                                                                 |
| **Approve app publishing**             | ✅ Yes               | Approval for app publishing                                                              |
| **Approve knowledge graph publishing** | ✅ Yes               | Approval for knowledge graph publishing                                                  |
| **Approve knowledge publishing**       | ✅ Yes               | Approval for knowledge publishing                                                        |
| **View publish reviews**               | ✅ Yes               | Allows viewing the publish review queue                                                  |
| **Trigger an agent**                   | ✅ Yes               | Allows running/trying an agent                                                           |
| **View agents**                        | ✅ Yes               | Allows viewing agents in the account                                                     |
| **Build an agent**                     | ❌ **Do NOT assign** | This is the Developer capability — assigning it to Approver defeats separation of duties |
| **Manage agent versions**              | ❌ **Do NOT assign** | Same reason                                                                              |
| **Publish an agent**                   | ❌ **Do NOT assign** | Same reason                                                                              |

{% hint style="warning" %}
**Warning:** "Publish an agent" and "Approve agent publishing" are two different capabilities. Publish an agent lets a Developer submit an agent for review. Approve agent publishing lets an Approver approve that submission. Confusing these two is the most common error in this exercise — double-check your checklist before saving each role.
{% endhint %}

{% hint style="info" %}
**Concept:** A user's effective permissions are the sum of all capabilities granted by all roles they hold in that account. An action that requires a capability the user does not have is disabled in the UI. This is how the platform enforces separation of duties — not through a policy rule, but through the absence of the capability itself.
{% endhint %}

## Step-by-step instructions

{% stepper %}
{% step %}
**Create the Builder Role**

**Navigate to Roles in Control Center**

Open `Control Center → Admin → Roles` in your sandbox environment.

You should see the Roles management surface, which lists the eight standard roles and any existing custom roles.

{% hint style="info" %}
**Checkpoint:** Confirm you can see the Roles page. If you see an "Access denied" or similar error, your account does not hold the required Org Admin capability ("Manage organization roles"). Contact your instructor before continuing.
{% endhint %}

**Create a new custom role named "Builder"**

Locate the option to create a new custom role. Enter the name `Builder` in the name field.

{% hint style="warning" %}
**Warning:** The exact UI path for creating a new custom role (the button label and form fields) requires SME verification — the step-by-step creation flow is not fully documented in the available source material. Your instructor or the sandbox environment itself will show you the create button. The capability checklist in the next section is fully documented and accurate.
{% endhint %}

{% hint style="info" %}
**Concept:** Custom role names must be clear and unique within the account. The platform uses the name you enter here as the display label everywhere the role appears — in the Users list, in the Teams panel, and in the capability matrix.
{% endhint %}

**Assign capabilities to the Builder role**

* Build an agent
* Manage agent versions
* Publish an agent
* Trigger an agent
* View agents
* Manage resource permissions
* See who has access (View user)

Do not select Approve agent publishing, Approve app publishing, Approve knowledge graph publishing, or Approve knowledge publishing.

{% hint style="info" %}
**Checkpoint:** Before saving, verify your checklist against Section 3. Confirm that "Approve agent publishing" is not checked. A Builder role that includes Approve agent publishing will allow a developer to self-approve their own agents — this defeats the separation of duties the exercise requires.
{% endhint %}

**Save the Builder role**

Save the Builder role before navigating away.

You should see the Builder role appear in the Custom Roles list.

{% hint style="warning" %}
**Warning:** Changes are discarded if you navigate away before saving. There is no auto-save. Save the Builder role completely before moving to the next procedure.
{% endhint %}
{% endstep %}

{% step %}
**Create the Approver Role**

**Create a new custom role named "Approver"**

**Assign capabilities to the Approver role**

* Approve agent publishing
* Approve app publishing
* Approve knowledge graph publishing
* Approve knowledge publishing
* View publish reviews
* Trigger an agent
* View agents

Do not select Build an agent, Manage agent versions, or Publish an agent.

{% hint style="info" %}
**Checkpoint:** Before saving, verify your checklist against Section 3. Confirm that "Build an agent" and "Manage agent versions" are not checked. An Approver role that includes Build an agent would allow an approver to edit the very agents they are reviewing — this also defeats separation of duties.
{% endhint %}

**Save the Approver role**

Save the Approver role before navigating away.

You should see both Builder and Approver listed under Custom Roles.

{% hint style="success" %}
**Best practice:** After saving both roles, take a moment to review each role's capability summary in the list view. Confirming the capability count for each role before assigning them to users prevents downstream access errors that are harder to diagnose once users are active.
{% endhint %}
{% endstep %}

{% step %}
**Assign the Builder Role to Your Sandbox Account**

**Navigate to Users in Control Center**

Open `Control Center → Admin → Users`.

You should see the Users list for your sandbox account.

**Assign the Builder role to your account**

Locate your sandbox user account in the list. Change the user's role assignment to the Builder role you created in the first procedure. Save the change.

{% hint style="warning" %}
**Warning:** You are changing the role on your own sandbox account. After saving, your account will hold the Builder role. If your account previously held Account Admin or Org Admin, you may lose access to some Admin functions — this is expected and is the point of the exercise. Your instructor can restore your original role after the validation step if needed.
{% endhint %}

{% hint style="info" %}
**Checkpoint:** After saving, confirm that your account now shows the Builder role in the Users list. If the role assignment did not save, try refreshing the page and repeating the assignment.
{% endhint %}
{% endstep %}

{% step %}
**Verify Separation of Duties**

**Verify that Approve agent publishing is disabled for your Builder account**

With your account now holding the Builder role, attempt to access the Approve agent publishing action. This action should be disabled or absent in the UI.

The expected behavior: because the Builder role does not include the Approve agent publishing capability, the platform disables that action for your account. You cannot self-approve an agent you built.

{% hint style="info" %}
**Checkpoint:** Confirm that the Approve agent publishing action is not available to your account. If it is still available, your Builder role was saved with the Approve agent publishing capability included — return to `Control Center → Admin → Roles`, open the Builder role, remove that capability, and save again.
{% endhint %}

{% hint style="info" %}
**Concept:** This is the separation of duties the platform enforces through the capability model. A Developer role can build, edit, publish, and manage agent versions — but cannot approve agent publishing. A separate user holding the Approver role must review and approve. No policy rule enforces this; the absence of the capability in the role definition is what makes self-approval impossible.
{% endhint %}
{% endstep %}

{% step %}
**Complete the Misconception-Busting Reflection**

**Read the reflection prompt and select your response**

Read the following prompt and select the response you believe is correct:

{% @uptiq-training/knowledge-check answer="B" content=""My bank already uses Entra ID groups — can I map those groups directly to Platform roles?"

A. Yes — the Platform reads your Entra ID group memberships and maps them to roles automatically when SSO is enabled.
B. No — the Platform uses an invitation-based, capability-grant model. Each user must be invited individually, and roles are assigned per account membership, not inherited from directory groups.
C. Yes — but only if you configure the group-to-role mapping in Control Center → Admin → Single Sign-On.
--------------------------------------------------------------------------------------------------------

The Platform's access model is invitation-based. Even when Microsoft SSO (Entra ID) is enabled, each user must be invited to the account individually before they can sign in. Roles are assigned per account membership — they are not inherited from Entra ID group memberships or directory attributes.

This is a common misconception for bank administrators who manage access through Active Directory or Entra ID groups in other systems. In the Platform, SSO handles how people sign in (authentication), but it does not handle what they can do (authorization). Role assignment is a separate, manual step performed in Control Center → Admin → Users.

Option A is incorrect: the Platform does not read Entra ID group memberships and map them to roles automatically.

Option C is incorrect: Group-to-role mapping is not a configurable feature in Control Center → Admin → Single Sign-On based on the current platform documentation." %}
{% endstep %}
{% endstepper %}

## Troubleshooting

<details>

<summary>Fixes for common problems in this lab</summary>

| **Symptom**                                                                                       | **Cause**                                                                                                                    | **Fix**                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"Access denied" when opening Control Center → Admin → Roles**                                   | Your account does not hold the "Manage organization roles" capability, which belongs only to Org Admin                       | Contact your instructor to confirm your sandbox account has Org Admin access before starting the lab                                                                                                            |
| **Builder role was saved but Approve agent publishing is still available to your account**        | The Approve agent publishing capability was accidentally included when creating the Builder role                             | Open `Control Center → Admin → Roles`, open the Builder role, remove Approve agent publishing from the capability list, and save again                                                                          |
| **Role changes are not reflected after saving**                                                   | You navigated away before the save completed, or the save action was not triggered                                           | Return to the role, verify the capability list, and explicitly select Save before navigating away                                                                                                               |
| **Your account lost access to Admin functions after being assigned the Builder role**             | Expected behavior — the Builder role does not include Admin capabilities                                                     | This is the intended outcome of the exercise. Ask your instructor to restore your original role after the validation step if you need Admin access again                                                        |
| **Cannot find the custom role in the Users role assignment dropdown**                             | The custom role was not saved successfully                                                                                   | Return to `Control Center → Admin → Roles`, confirm Builder appears under Custom Roles, then retry the user assignment                                                                                          |
| **Confused about which capability to assign — "Publish an agent" vs. "Approve agent publishing"** | These are two different capabilities with similar names                                                                      | "Publish an agent" = Developer submits for review. "Approve agent publishing" = Approver approves the submission. Builder gets "Publish an agent." Approver gets "Approve agent publishing." Neither gets both. |
| **The Approver role's "Approve agent publishing" action is not visible after role assignment**    | The Approver role may not have been saved with the correct capabilities, or the user has not been assigned the Approver role | Verify the Approver role's capability list in Admin → Roles, then verify the user's role assignment in Admin → Users                                                                                            |

</details>

## Checkpoints and validation

### Embedded Checkpoints (Formative — Unscored)

Complete each checkpoint in sequence before moving to the next procedure.

#### Checkpoint 1 — After saving the Builder role

**Confirm:** The Builder role appears in the Custom Roles list in `Control Center → Admin → Roles`.

**How to confirm:** Navigate to `Control Center → Admin → Roles` and look for "Builder" under Custom Roles.

**If it does not appear:** The role was not saved. Repeat the Builder role creation steps.

#### Checkpoint 2 — After saving the Approver role

**Confirm:** Both Builder and Approver appear in the Custom Roles list.

**How to confirm:** Navigate to `Control Center → Admin → Roles` and confirm both custom roles are listed.

**If only one appears:** The second role was not saved. Repeat the creation and save steps for the missing role.

#### Checkpoint 3 — After assigning the Builder role to your account

**Confirm:** Your sandbox user account shows the Builder role in `Control Center → Admin → Users`.

**How to confirm:** Navigate to `Control Center → Admin → Users`, locate your account, and verify the role displayed is Builder.

**If the role still shows your previous role:** The assignment was not saved. Repeat the role assignment step.

#### Checkpoint 4 — After verifying separation of duties

**Confirm:** The Approve agent publishing action is disabled or absent for your Builder-role account.

**How to confirm:** Attempt to access the Approve agent publishing action. It should not be available.

**If the action is still available:** Your Builder role was saved with the Approve agent publishing capability. Return to `Control Center → Admin → Roles`, open Builder, remove that capability, save, and retest.

### Summative Assessment

#### Item 1

{% @uptiq-training/knowledge-check answer="B" content="A bank developer submits an agent for production publishing. Which role must a separate user hold to approve it?

A. Developer
B. Approver
C. Account Admin
D. Governance Manager
---------------------

The Approve agent publishing capability belongs to the Approver role (as well as Account Admin and Org Admin). The Developer role does not include this capability, which is what prevents a developer from self-approving their own agent. A separate user holding the Approver role must review and approve the submission.

Covers: EO-7.1 — enforcing separation of duties between builder and approver roles" %}

#### Item 2

{% @uptiq-training/knowledge-check answer="C" content="You assigned a user the Builder role. Which of the following actions will be disabled for that user?

A. Build an agent
B. Trigger an agent
C. Approve agent publishing
D. View agents
--------------

The Builder role includes Build an agent, Trigger an agent, and View agents — all of which remain available. Approve agent publishing is not included in the Builder role's capability list. Because the platform disables any action whose required capability the user does not hold, Approve agent publishing will be disabled in the UI for a Builder-role user.

Covers: EO-7.1 — assigning capabilities (not just titles) and validating the resulting permission model" %}

## Solution reference

<details>

<summary>The completed state of your work</summary>

The following shows the completed state of your sandbox after all procedures are successfully executed.

### Custom Roles Created

#### Builder (Custom Role)

| **Capability**                         | **Assigned** |
| -------------------------------------- | ------------ |
| **Build an agent**                     | ✅            |
| **Manage agent versions**              | ✅            |
| **Publish an agent**                   | ✅            |
| **Trigger an agent**                   | ✅            |
| **View agents**                        | ✅            |
| **Manage resource permissions**        | ✅            |
| **See who has access (View user)**     | ✅            |
| **Approve agent publishing**           | ❌            |
| **Approve app publishing**             | ❌            |
| **Approve knowledge graph publishing** | ❌            |
| **Approve knowledge publishing**       | ❌            |

#### Approver (Custom Role)

| **Capability**                         | **Assigned** |
| -------------------------------------- | ------------ |
| **Approve agent publishing**           | ✅            |
| **Approve app publishing**             | ✅            |
| **Approve knowledge graph publishing** | ✅            |
| **Approve knowledge publishing**       | ✅            |
| **View publish reviews**               | ✅            |
| **Trigger an agent**                   | ✅            |
| **View agents**                        | ✅            |
| **Build an agent**                     | ❌            |
| **Manage agent versions**              | ❌            |
| **Publish an agent**                   | ❌            |

### User Assignment

Your sandbox account is assigned the Builder role.

### Validated Behavior

With the Builder role assigned to your account:

* Build an agent — **available**
* Publish an agent — **available** (submits for review; does not self-approve)
* Approve agent publishing — **disabled** (capability not present in Builder role)

A separate user holding the Approver role would see the inverse: Approve agent publishing available, Build an agent disabled.

### What the Completed Environment Looks Like

* `Control Center → Admin → Roles` shows two custom roles: Builder and Approver, each with the capability assignments above
* `Control Center → Admin → Users` shows your sandbox account assigned to the Builder role
* Attempting to access Approve agent publishing as your Builder-role account produces a disabled state in the UI — no error, just an unavailable action

{% hint style="info" %}
**Concept:** The same governance model that governs human-initiated agent runs also governs automated and scheduled runs. The account-level capability assignments you configured here apply to every agent execution in the account — there is no separate permission model for agents vs. humans. The AI Gateway model policies and guardrails you will configure in later lessons follow the same principle: they are set at the organization level and enforced on every run regardless of who or what initiated it.
{% endhint %}

</details>

{% hint style="success" %}
**Lab complete.** Confirm every checkpoint above before you move on.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/academy/tier-2-core-skills/m07-governance-rbac-ai-gateway-configuration/lab-2-configure-rbac-roles-and-enforce-separation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
