Public groups
A public group is a group of users (subjects) to which you can assign roles. Yandex Cloud has two types of public groups: All authenticated users
and All users
. These groups allow you to grant public access to your resources, but only for operations that are allowed by the assigned role.
Granting roles with extensive permissions, such as editor
or admin
, to public groups poses a significant security risk.
All authenticated users
All authenticated users
includes all users who have successfully authenticated. These are all registered users or Yandex Cloud service accounts: both from your clouds and other users' clouds. Using this group is not advisable for security reasons. Instead, use system groups, such as All users in organization X
and All users in federation N
, or your own custom groups.
For example, let's say you have an OS disk image that you want to share with all Yandex Cloud users. To do this, assign the
compute.images.user
role to theAll authenticated users
subject for the folder containing the image.
When assigning a role to All authenticated users
via the CLI, TerraformallAuthenticatedUsers
subject ID.
Alert
Assigning a role to All authenticated users
opens public access to your resources. This role grants permissions for your resources to every user authenticated in Yandex Cloud, not just users from your cloud.
All users
All users
includes any user, with no authentication required.
For example, when making an API request to your resource, users do not need to specify their IAM tokens. Using this group is not advisable for security reasons. Instead, use system groups, such as
All users in organization X
andAll users in federation N
, or organization-specific user groups you create on your own.
When assigning a role to All users
via the CLI, Terraformsubject
ID.
Note
Currently, All users
is only supported for the following services: Object Storage (when using ACL-based access management), Container Registry, and Cloud Functions.
For other services, assigning a role to the All users
group is the same as doing so to All authenticated users
.