Permission development guidelines
There are multiple types of permissions across GitLab, and when implementing anything that deals with permissions, all of them should be considered. For more information, see:
- Predefined roles system: a general overview about predefined roles, user types, feature specific permissions or permissions dependencies.
DeclarativePolicy
framework: introduction intoDeclarativePolicy
framework we use for authorization.- Naming and conventions: guidance on how to name new permissions and what should be included in policy classes.
- Authorizations: guidance on where to check permissions.
- Custom roles: guidance on how to work on custom role, how to introduce a new ability for custom roles, how to refactor permissions.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support