Getting started with Identity and Access Management
Yandex Identity and Access Management allows you to manage access to Yandex Cloud resources. With IAM, only users with relevant access permissions can perform operations on resources.
Yandex Cloud resource model
All Yandex Cloud services work are based on a common resource and role model. When using Yandex Cloud services, you create resources: VMs, managed database clusters, registries, secrets, and more. Most services store the resources they create in folders. Folders belong to clouds, and clouds belong to organizations.
Organizations are logical entities that combine different types of resources and users into a single workspace. Organizations do not interact between themselves: their resources are isolated from one another.
Within an organization, you can configure access permissions for a resource at the following levels:
- Organization.
- Cloud.
- Folder.
- Individual resource if the relevant service supports such granular access management.
This approach enables the minimum privilege principle, wherein users get only those permissions that are essential for their tasks.
Access management
Access management in Yandex Cloud leverages the Role Based Access Control
In Yandex Cloud, roles and resources for which roles can be assigned are predefined. Users cannot create custom roles.
Roles can be assigned only by users with at least the primitive admin role or the <service_name>.admin role for an individual resource or one of its parent resources. The level of permissions granted by a user cannot be higher than the user's own.
Example
A role for an individual VM can be assigned by a user with one of the following roles:
admincompute.adminresource-manager.clouds.ownerorganization-manager.adminorganization-manager.organizations.owner
The user must have one of these roles assigned for the following resources:
- VM
- Folder the VM belongs to
- Cloud the folder is in
- Whole organization
If you want to prevent a subject from accessing a resource, revoke the relevant roles for this resource as well as for the resources access permissions can be inherited from.
Yandex Cloud role model subjects
Roles for a resource are assigned to subjects. Each subject can get multiple roles.
There are the following subject types:
- Yandex account: Your Yandex or Yandex 360 account.
- Service account: Additional account programs can use to perform operations in Yandex Cloud. Service accounts are free of charge and enable flexible access management for your programs.
- Federated account: User account in an identity federation, e.g., Active Directory.
- Local user account: User account created locally in the Yandex Identity Hub organization in a user pool.
- User group: Group of users with the same access permissions.
- System group: User group preinstalled in IAM.
Working with Yandex Identity Hub
IAM and Yandex Identity Hub are closely related because Identity Hub also provides access management features – but at the organization level. For example, you can use Identity Hub for centralized user management, which includes inviting new users.
You can also create federations and manage them to pass single sign-on authentication in Yandex Cloud via your identity provider.
User group management also takes place in Identity Hub. For example, you can use the service to issue access permissions to a group. To use other Yandex Cloud interfaces to set up group access permissions, first create a group and add members to it in Identity Hub. With that done, you will be able to manage the group in many ways, e.g., give it permissions for a folder in the management console.
What's next
- Learn how to get started with Identity Hub.
- Read about billing accounts: what they are for and how to create one.
- Learn about resources and access management Yandex Cloud.
- Learn how to manage access to resources.
- See what account types exist in Yandex Cloud and how to work with service accounts.
- Read about authentication methods in Yandex Cloud.