# Viewing roles assigned for a registry

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the [folder](../../../resource-manager/concepts/resources-hierarchy.md#folder) where the registry is located.
  1. Navigate to **Cloud Registry**.
  1. Select the registry.
  1. Navigate to the **Access bindings** tab.
  1. Find the required user, group, or [service account](../../../iam/concepts/users/service-accounts.md) in the list. Assigned roles are specified in the **Roles** column.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  Run this command:

  ```bash
  yc cloud-registry registry list-access-bindings <registry_name_or_ID>
  ```

  **Example**
  
  ```bash
  yc cloud-registry registry list-access-bindings my-first-registry
  ```

  Result:
  
  ```bash
  +----------------------+---------------+----------------------+
  |       ROLE ID        | SUBJECT TYPE  |      SUBJECT ID      |
  +----------------------+---------------+----------------------+
  | cloud-registry.admin | federatedUser | ajekv7lpqpgu******** |
  +----------------------+---------------+----------------------+
  ```

- API {#api}

  Use the [listAccessBindings](../../api-ref/Registry/listAccessBindings.md) REST API method for the [Registry](../../api-ref/Registry/index.md) resource or the [RegistryService/ListAccessBindings](../../api-ref/grpc/Registry/listAccessBindings.md) gRPC API call.

{% endlist %}

For more information about assigning roles, see [this Yandex Identity and Access Management guide](../../../iam/operations/roles/get-assigned-roles.md).