This PR changes the `VideoContent` component to: - remove the extra text; keeps only videos - makes videos take up the full article width - multiple videos stack vertically (this may or may not be the best way to handle it, but we don't have any instances of using multiple videos as of right now, so we shouldn't touch this until we do). By chance, it also removes a lot of trailing whitespace in files. I suggest checking out the diff with whitespace hidden. Before (single video): ![image](https://github.com/Unleash/unleash/assets/17786332/e47e8827-93e9-4dbc-bdfb-cdb1665fae98) Before (if there were multiple videos): ![image](https://github.com/Unleash/unleash/assets/17786332/f41ab11f-649f-4369-96fe-70a5d66ced40) After (single video): ![image](https://github.com/Unleash/unleash/assets/17786332/0df9d3fd-3935-4567-93d0-470682fe4bb3) After (if there are multiple videos): ![image](https://github.com/Unleash/unleash/assets/17786332/98b4a590-c03c-40a1-880f-93ad05090c5e)
3.5 KiB
title |
---|
How to create and assign custom project roles |
import VideoContent from '@site/src/components/VideoContent.jsx'
:::info availability
Custom project roles were introduced in Unleash 4.6 and are only available in Unleash Enterprise.
:::
This guide takes you through how to create and assign custom project roles. Custom project roles allow you to fine-tune access rights and permissions within your projects.
<VideoContent videoUrls={["https://www.youtube.com/embed/2BlckVMHxgE" , "https://www.youtube.com/embed/IqaD8iGxkwk"]}/>
Creating custom project roles
It takes about three steps to create custom project roles:
- Navigate to the custom project roles page by using the admin menu (the gear symbol) and navigating to users.
- Navigate to the "Project roles" tab.
- Use the "New project role" button to open the role creation form.
- 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.
Assigning custom project roles
:::info Multiple project roles
Multiple project roles were introduced as a beta Enterprise feature in Unleash 5.5. See multiple project roles for more info.
:::
Assigning a custom project role is a pretty straightforward process and requires three steps, outlined below.
To assign a custom project role to a user:
- Navigate to the project you want to assign the user a role in.
- Navigate to the project's access tab.
- 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, click on the edit icon coresponding with its line and from the overlay that will show up select the new role you want to assign it from the dropdown and save the changes.
- If the user hasn't been added to the project, add them using the button 'Assing user/group'. From the overlay that will show up select the user, assign it a role and save the changes. Now you should be able to see the new user in the table.