> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Grant a custom role access to a workspace

> Grant a custom role access to a workspace so its members can work on business rules.

You grant a custom role access to a workspace so that the people who have that role can work in it.
The workspace roles that you select replace any workspace roles that the role already has.

## Prerequisites

Before starting this task, ensure you have the following:

* Required roles: [`workspace_admin` in a workspace](https://docs.nx1cloud.com/documentation/data/overview/business-rules#roles-and-permissions) or [`nx1_decisions_admin`](https://docs.nx1cloud.com/documentation/govern/tasks/iam/role/assign-a-role)
* An existing [business rules workspace](https://docs.nx1cloud.com/documentation/data/tasks/business-rules/workspaces/create-a-workspace.md)
* A [custom role that maps to `nx1_decisions_user`](https://docs.nx1cloud.com/documentation/govern/tasks/iam/role/create-a-role)

## Steps

> [tab] Web portal
>
> Perform these steps to grant a custom role access to a workspace:
>
> 1. Log in to NexusOne.
> 2. On the top navigation bar, hover your mouse over **Data** and then select **Business Rules**.
> 3. Select a workspace.
> 4. Click **Members**.
> 5. Under **Grant access to a Keycloak role**, select your custom role. If it already has workspace roles,
>    then the form selects them for you.
> 6. Under **Workspace roles**, select the roles to grant, such as **Author** or **Approver**.
> 7. Click **Save roles**.

> [tab] REST API
>
> Use the following API endpoints to grant a custom role access to a workspace:
>
> 1. [List the Keycloak roles workspace access can be granted to](https://docs.nx1cloud.com/api-reference/endpoints/decisions/list-the-keycloak-roles-workspace-access-can-be-granted-to.md)
> 2. [Grant workspace roles to a Keycloak role](https://docs.nx1cloud.com/api-reference/endpoints/decisions/grant-workspace-roles-to-a-keycloak-role.md)
> 3. [List workspace members](https://docs.nx1cloud.com/api-reference/endpoints/decisions/list-workspace-members.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.