> ## 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.

# Remove a custom role's access to a workspace

> Remove a custom role's access to a workspace so its people can no longer work in it.

You remove a custom role's access to a workspace when the people who have that role no longer need to work in it.

## 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)
* A [role that has access to a workspace](https://docs.nx1cloud.com/documentation/data/tasks/business-rules/workspaces/grant-a-custom-role-access-to-a-workspace.md)

## Steps

> [tab] Web portal
>
> Perform these steps to remove a custom role's 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. In the **Keycloak role** table, click the trash icon next to a role.

> [tab] REST API
>
> Use the following API endpoints to remove a custom role's access to a workspace:
>
> 1. [List workspace members](https://docs.nx1cloud.com/api-reference/endpoints/decisions/list-workspace-members.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)
>
> To remove all access for a role, send an empty list of workspace roles.

## Additional resources

To give a custom role access to a workspace, refer to [Grant a custom role access to a workspace](https://docs.nx1cloud.com/documentation/data/tasks/business-rules/workspaces/grant-a-custom-role-access-to-a-workspace.md).


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