[Yandex Cloud documentation](../../index.md) > [Yandex Managed Service for Trino](../index.md) > [Step-by-step guides](index.md) > Object access rules > Getting access rules

# Getting access rules in Managed Service for Trino

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the relevant folder.
  1. Navigate to **Managed Service for&nbsp;Trino**.
  1. Click the cluster name and navigate to the **Overview** tab.

     Access permissions are described under **Access settings**.

- 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.

  To learn what access rules are assigned for a Managed Service for Trino cluster, run this command:

  ```bash
  yc managed-trino cluster get-access-control <cluster_name_or_ID>
  ```

  You can get the cluster ID and name with the [list of clusters in the folder](cluster-list.md#list-clusters).

- REST API {#api}

  To learn what access rules are assigned for a Managed Service for Trino cluster, [get detailed info](cluster-list.md#get-cluster) on this cluster. Access permissions are described under `accessControl`.

- gRPC API {#grpc-api}

  To learn what access rules are assigned for a Managed Service for Trino cluster, [get detailed info](cluster-list.md#get-cluster) on this cluster. Access permissions are described under `access_control`.

{% endlist %}