Public groups
A public group is a group of users (subjects) to which you can assign roles. In Yandex Cloud, there are 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.
It is unsafe to assign roles with extensive permissions, such as editor
or admin
, to public groups.
All authenticated users
The All authenticated users
public group includes all the authenticated users, i.e., all users or service accounts registered in Yandex Cloud from both your clouds and other users' clouds. Using this group is unsafe. 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 this role to the All authenticated users
system group gives public access to your resources. The role grants permissions for your resources to every user authenticated in Yandex Cloud, not only the users from your cloud.
All users
The All users
public group 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 unsafe. Instead, use system groups, such as
All users in organization X
andAll users in federation N
, or your custom organization user groups.
When assigning a role to All users
via the CLI, TerraformallUsers
subject 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 equivalent to assigning a role to All authenticated users
.