Viewing roles assigned for a resource
Written by
Updated at February 8, 2024
To view assigned roles:
Management console
CLI
API
- In the management console
, select the folder to view resource roles. - In the list of services, select Container Registry.
- View the roles assigned for a resource:
- Viewing roles for a registry:
- To the right of the registry name, click
- In the window that opens, you can see a list of users and their permissions for the registry.
- To the right of the registry name, click
- Viewing roles for a repository:
- Select the registry.
- To the right of the repository name, click
- In the window that opens, you can see a list of users and their permissions for the repository.
- Viewing roles for a registry:
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
Run this command:
yc <service_name> <resource> list-access-bindings <resource_name_or_ID>
Where:
<service_name>
:container
service name.<resource>
: Category of the resource (registry
orrepository
).<resource_name_or_ID>
: Name or ID of the resource the role is assigned for.
Example. View the roles for the registry with the
crp0pmf1n68d********
ID:yc container registry list-access-bindings crp0pmf1n68d********
Command result:
+--------------------------+------------------+----------------------+ | ROLE ID | SUBJECT TYPE | SUBJECT ID | +--------------------------+------------------+----------------------+ | container-registry.admin | federatedAccount | kolhpriseeio******** | +--------------------------+------------------+----------------------+
Use the listAccessBindings
method for the registry
and repository
resources.
Read more about role management in the Yandex Identity and Access Management documentation.