Viewing assigned access policies
Note
This feature is in the Preview stage. To get access, contact tech support
Access policies are a Yandex Identity and Access Management mechanism that allows you to manage permissions for specific operations with Yandex Cloud resources. Access policies complement the role system for more flexible access management.
You can assign access policies for a folder, cloud, or organization.
Note
To manage access policies, a user must have one of the following roles:
resource-manager.adminoradminfor the folder or cloud to manage access policies at the folder or cloud level, respectively.organization-manager.adminoradminfor the organization to manage access policies at the organization level.
Viewing access policies assigned for a folder
To view the list of access policies assigned for a folder:
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
Run the command, specifying the name or ID of the folder for which you want to view the assigned policies:
yc resource-manager folder list-access-policy-bindings <folder_name_or_ID>
Result:
+---------------------------------------+
| ACCESS POLICY TEMPLATE ID |
+---------------------------------------+
| iam.denyServiceAccountApiKeysCreation |
+---------------------------------------+
Use the listAccessPolicyBindings REST API method for the Folder resource or the FolderService/ListAccessPolicyBindings gRPC API call.
Viewing access policies assigned for a cloud
To view the list of access policies assigned for a cloud:
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
Run the command, specifying the name or ID of the cloud for which you want to view the assigned policies:
yc resource-manager cloud list-access-policy-bindings <cloud_name_or_ID>
Result:
+---------------------------------------+
| ACCESS POLICY TEMPLATE ID |
+---------------------------------------+
| iam.denyServiceAccountApiKeysCreation |
+---------------------------------------+
Use the listAccessPolicyBindings REST API method for the Cloud resource or the CloudService/ListAccessPolicyBindings gRPC API call.
Viewing access policies assigned for an organization
To view the list of access policies assigned for an organization:
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
Run the command, specifying the name or ID of the organization for which you want to view the assigned policies:
yc organization-manager organization list-access-policy-bindings <organization_name_or_ID>
Result:
+------------------------------+
| ACCESS POLICY TEMPLATE ID |
+------------------------------+
| organization.denyUserListing |
+------------------------------+
Use the listAccessPolicyBindings REST API method for the Organization resource or the OrganizationService/ListAccessPolicyBindings gRPC API call.