1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/website/docs/how-to/how-to-create-and-assign-custom-project-roles.md

59 lines
4.1 KiB
Markdown
Raw Normal View History

---
title: How to create and assign custom project roles
---
import VideoThing from './VideoThing.jsx'
:::info availability
Custom project roles were introduced in **Unleash 4.6** and are only available in Unleash Enterprise.
:::
<VideoThing videoUrls={["https://www.youtube.com/embed/2BlckVMHxgE" , "https://www.youtube.com/embed/IqaD8iGxkwk"]}>
</VideoThing>
This guide takes you through [how to create](#creating-custom-project-roles "how to create custom project roles") and [assign](#assigning-custom-project-roles "how to assign custom project roles") [custom project roles](../user_guide/rbac.md#custom-project-roles).
## Creating custom project roles
It takes about three steps to create custom project roles. You can either follow the steps in writing below or watch [the accompanying video](#video-create).
To create custom project roles:
2022-01-10 14:38:03 +01:00
1. Navigate to the custom project roles page by using the admin menu (the gear symbol) and navigating to users.
2022-01-14 10:44:50 +01:00
![A visual representation of the current step: the Unleash Admin UI with the steps highlighted.](/img/create-cpr-step-1.png)
2. Navigate to the "project roles" tab.
![The admin/roles screen, with the project roles tab highlighted. The page shows a table of project roles with their descriptions.](/img/create-cpr-step-2.png)
2022-01-10 14:38:03 +01:00
3. Use the "new project role" button to open the role creation form.
2022-01-14 10:44:50 +01:00
![The visual position of the 'new project role' button on the page.](/img/create-cpr-step-3.png)
2022-01-10 14:38:03 +01:00
4. Give the role a name, an optional description, and the set of permissions you'd like it to have. For a full overview of all the options, consult the [custom project roles reference documentation](../user_guide/rbac.md#custom-project-roles).
2022-01-14 10:44:50 +01:00
![The project role creation form filled in with details for a "developer" role. To the left is the equivalent cURL command you could run if you wanted to use the API instead of the form.](/img/create-cpr-step-4.png)
### How to create custom project roles (video) {#video-create}
Here's a video recording with accompanying explanations of how to create custom project roles:
<!-- <iframe width="100%" height="auto" style={{ aspectRatio: "16/9" }} src="https://www.youtube.com/embed/2BlckVMHxgE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->
## Assigning custom project roles
2022-01-19 15:08:25 +01:00
Custom project role creation is a pretty straightforward process and requires around three steps, outlined below. There's also a [video version](#video-assign) available.
To assign a custom project role to a user:
1. Navigate to the project you want to assign the user a role in.
2022-01-14 10:44:50 +01:00
![The steps to navigate to a project: use the 'projects' navigation item and select your project.](/img/assign-cpr-step-1.png)
2. Navigate to the project's _access_ page.
2022-01-14 10:44:50 +01:00
![A project overview with the 'access' tab highlighted.](/img/assign-cpr-step-2.png)
3. This step depends on whether the user has already been added to the project or not:
- If the user has already been added to the project, select the new role you want to give them from the dropdown menu next to their name.
2022-01-14 10:44:50 +01:00
![A list of users with access to the current project. To the right of each user is a dropdown input labeled role.](/img/assign-cpr-step-3a.png)
- If the user _hasn't_ been added to the project, add them via the 'add user' form. Select the role you want to give them from the role field.
2022-01-14 10:44:50 +01:00
![Adding a user to a project. The add user form is filled out with data for an "Alexis". The Role input is open and the custom "Developer" role is highlighted.](/img/assign-cpr-step-3b.png)
### How to assign custom project roles (video) {#video-assign}
Here's a video recording with accompanying explanations of how to assign custom project roles:
<!-- <iframe width="100%" height="auto" style={{ aspectRatio: "16/9" }} src="https://www.youtube.com/embed/IqaD8iGxkwk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->