Inviting a new user and assigning roles
In this tutorial, you will learn how to invite a new user to your organization and grant them permissions to create a VM in a folder. The tutorial includes instructions for both the administrator and the user. For the steps the user must complete, see User actions.
To invite a user to your organization and grant them access to a folder and other resources:
- Prepare Yandex Cloud.
- Set up your infrastructure.
- Invite the user to the organization and assign roles.
- Make sure the user has accepted the invitation and can access the resources.
If you no longer need the paid resources you created, delete them.
Required paid resources
The cost of infrastructure support includes fees for computing resources, OS, storage, amount of outgoing traffic, and VM public IP address (see Yandex Compute Cloud pricing).
Prepare Yandex Cloud
Sign up for Yandex Cloud and create a billing account:
- Navigate to the management console
and log in to Yandex Cloud or create a new account. - On the Yandex Cloud Billing
page, make sure you have a billing account linked and it has theACTIVEorTRIAL_ACTIVEstatus. If you do not have a billing account, create one.
Set up the infrastructure
Organization is a workspace that consolidates various types of Yandex Cloud resources and users. Any Yandex user can create an organization in Yandex Identity Hub. After you create an organization, you become its owner and can manage its settings.
To create an organization, follow these steps:
-
Go
to Yandex Identity Hub.Your next steps will depend on whether you are a member of any organization in Yandex Identity Hub.
-
Create an organization:
You are not a member of an organizationIf you are a member of an organizationIf you are not yet a member of an organization in Yandex Identity Hub, when clicking the link, you will be prompted to create a new organization:
- Enter your organization name, e.g.,
Example organization. - Click Create a new organization.
If you are currently a member of an organization in Yandex Identity Hub, when clicking the link, you will see the Yandex Identity Hub
interface in Cloud Center.To avoid tampering with the infrastructure in existing organizations, create a new organization:
- In the top-left corner, next to the organization name, click
and select Create organization. - In the window that opens, enter a name for the organization:
Example organization. - Click Create a new organization.
- Enter your organization name, e.g.,
If you want to allocate isolated resources to a user within an organization:
-
Create a cloud named
testinginExample organization. -
Create a folder named
test-folderin thetestingcloud.
If the user does not need isolated resources, you can grant them access to existing clouds and folders, e.g., the default ones.
Invite the user to the organization and assign roles
Tip
To make sure the user gets all required permissions the first time they log in, assign roles immediately after sending the invitation. Once the invitation is accepted, you will be able to assign more roles or revoke those already assigned.
Send an invitation to the user
For the user to access Yandex Cloud resources, invite them to the organization you created:
-
Go to Yandex Identity Hub
. -
In the left-hand panel, select
Users. -
In the top-right corner, click
Add user and select Invite users with a Yandex account. -
Enter the user's email.
You can send invitations to any email address. Invited users will be able to select the appropriate Yandex account once they accept the invitation.
-
Click Send invitation.
Assign the user a role for a cloud
- In the management console
, select thetestingcloud. - Navigate to the Access bindings tab.
- Click Configure access.
- In the window that opens, select Invitee accounts.
- Select a user from the list or use the user search option.
- Click
Add role and select theresource-manager.clouds.memberrole. - Click Save.
Assign the user a role for the folder
-
In the management console
, navigate totest-folder. -
Navigate to the Access bindings tab.
-
Click Configure access.
-
In the window that opens, select Invitee accounts.
-
Select a user from the list or use the user search option.
-
Click
Add role and select thecompute.editorrole.Tip
You can also assign other roles depending on the actions you want to allow on folder resources. For the full list of roles, see the Yandex Identity and Access Management documentation.
-
Click Save.
Then instruct the user to complete these steps.
User actions
Accept the invitation to the organization
- In the invitation email, click Accept invitation.
- On the page that opens, click Accept.
- Select an account to log in.
You now have access to Example organization and its resources.
Check access to the cloud
-
Go to the management console
and click your profile image in the left-hand panel. -
Select
Example organization. -
In the left-hand panel, select the
testingcloud. You will see the list of cloud folders.This means you have access to the
testingcloud.
Check access to the folder
Make sure you have access to test-folder. Once you open the folder, create a VM in it:
-
Go to the management console
and click your profile image in the left-hand panel. -
Select
Example organization. -
In the left-hand panel, select
test-folder. -
In the list of services, select Compute Cloud.
-
Select
Virtual machines. -
Click Create virtual machine and set the VM parameters:
- Select Basic setup.
- Under Operating systems and products, select Ubuntu 24.04 LTS.
- Under Computing resources, specify the computing resource configuration for the VM.
- Under Disks, specify the size and type of the disk.
- Enter the VM name.
- Set the Login of the VM administrator.
- In the SSH key field, click Add key. In the window that opens:
-
Enter a Name for the SSH key.
-
Under SSH key, select Enter manually, then upload or paste the contents of the public SSH key. You need to create a key pair for the SSH
connection to the VM on your own. -
Click Add.
The system will add the SSH key to your organization user profile.
If, due to organization restrictions, you cannot add SSH keys to your user profile, the system will save the key to the VM user profile.
-
- Click Create VM.
If the VM is created successfully, you can access the cloud and use Compute Cloud resources. Report this to the administrator.
Delete the resources you created
If the user no longer needs the VM they created, delete it to avoid paying the fee.