Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PL-57842]: role reusability doc #8304

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions docs/platform/role-based-access-control/add-manage-roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,46 @@ To add role bindings to an existing user:
10. Select **Apply**. You will receive a notification stating **Role Assignments updated successfully**, and the role binding process is complete.

The user can now sign in to their account and access only those resources allowed in the resource groups with their **Account Admin** permissions.

## Reuse roles across scopes

You can now streamline role management by reusing roles across scopes in Harness, simplifying access control configuration across your account, organizations, and projects. By creating a role at the account level, you can easily assign it to users, user groups, or service accounts at more granular levels like the organization or project scope.
GokulBansal0 marked this conversation as resolved.
Show resolved Hide resolved

:::important
You can only reuse custom roles across scopes. Built-in roles are not reusable.
:::

:::note
This feature is behind the feature flag `PL_ROLE_REUSABILITY_ACROSS_CHILD_SCOPES`. Contact [Harness Support](mailto:support@harness.io) to enable the feature.
:::

<details>
<summary>Example: Reusing roles across scopes</summary>

This example walks through reusing a role across scopes. The role is created at the account scope and then assigned to users at the organization and project scopes.

#### Create a role at the account scope

1. In Harness, go to **Account Settings**, and then select **Access Control**.
2. Select **Roles** in the header, and then select **New Role**.
3. For **Name**, enter `TEST_ROLE`. **Description** and **Tags** are optional.
4. Select **Save**.
5. Select the following permissions:
- For **Pipelines**, select **Execute**.
6. Select **Apply Changes**.

[](./static/add-manage-roles-17.png)

#### Assign the role to users at the organization scope
1. In Harness, go to **Account Settings**, select **Organizations**, select the relevant organization, and then select **Access Control**.
2. Select **User Groups** in the header, and then select the User Group you want to assign the role to.
3. Select **Manage Role Bindings**.
4. Under **Role Bindings**, select **Add**.
5. Under **Select an Existing Role**, select **Account** in the header and then select the role you want to assign.
[](./static/add-manage-roles-20.png)
6. Select **Apply Selected**.
7. Select **Save**.
[](./static/add-manage-roles-21.png)

</details>

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading