How to grant permissions to users to access/modify repositories in Red Hat Satellite 6
Environment
- Red Hat Satellite 6.x
Issue
- How to grant users access to specific custom repositories in Red Hat Satellite.
- How to grant users permissions to modify custom repositories in Red Hat Satellite.
Resolution
Although there aren't any repository-specific permissions, this is achievable by using the product-related permissions. Since each custom repository has a product associated with it, this should not be a problem.
-
Below are the permissions that are available for users with regard to repositories.
view_products create_products edit_products destroy_products sync_products export_products -
To assign these permissions to a user, follow the below instructions:
- Create a
Role.
Satellite WebUI -> Administer -> Roles -> Create Role- After creating the role, follow the below steps on the
Satellite WebUIto access this role and set a filter for the product associated with the repository.
Satellite WebUI -> Administer -> Roles -> <this_Role> -> Filters -> Create Filter Set "Products and Repositories" as the "Resource Type" Assign the "view_products" permission Uncheck the "Unlimited" box In the Search field, set "label =" to the label of the product with which the repository is associated Submit - Create a
Checking the Unlimited box will grant permission over all the repositories.
- Assign this Role to the user whose access is to be restricted.
```
Satellite WebUI -> Administer -> Users -> Roles -> Select <this_Role>
```
For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.