Select the organization you want to assign a role in.
On the organization page, under People, go to the Members & roles section.
Next to the user you want to assign the role to, click in the Members & roles column.
Mark the roles you want to assign to the user with .
Click Apply.
Tip
You can assign roles in the organization directly to a user group. For more information, see {#T}.
Assigning a role to a user in a repository
Warning
You need at least the Repository maintainer role to assign a role to a repository user.
When you assign a role in a repository to a user who is not a member of the organization owning the repository, the user will be invited to the organization. In which case you will need the Organization admin role.
On the Home tab, under Your craftspace, navigate to Repositories.
Select the repository you want to assign a role in.
Under Repository settings on the repository page, go to Members & roles.
In the top-right corner, click New role.
In the window that opens, select the principle of issuing an invitation and a role to the user:
Login
E-mail
Link
Multi-use link
In the Users or teams field, start typing the user's public name, e.g., John Smith, or nickname, e.g., jsmith-2000, and select the user from among the suggested options.
In the Role drop-down list, select the role you want to assign.
In the Invite Expires In drop-down list, select how long the invitation to the repository will remain valid.
Click Add.
In the Emails field, enter the email addresses of the users you want to assign the role to, one by one.
In the Role drop-down list, select the role you want to assign.
In the Invite Expires In drop-down list, select how long the invitation to the repository will remain valid.
Click Add.
You can generate unique invitation links for ad-hoc users. Each link has its own expiration date and can only be used once.
This is useful if you do not know the logins or emails of your users or want to automate role assignment and repository access management.
A user accepts the invitation by clicking the link and gets access to your organization and its repositories.
In the Invite Expires In drop-down list, select how long the link will remain valid.
In the Quantity field, specify the number of unique invitation links.
Optionally, in the Prefix field, specify a prefix for the invitation links, e.g., team-sourcecraft.
In the Role drop-down list, select the role that will be assigned to the users who accept the invitation via the link.
Click Add.
In the window that opens, copy the links to the clipboard or download them as a file, then close the window.
Warning
After closing the window, the links you generated will no longer be available. However, you can create new ones.
Send the invitation links to the users you want to assign the role to.
You can generate a single multi-use link that allows one or more users to join the repository. You can create a multi-use link either for specific or ad-hoc users.
Users joining through the multi-use link will also get the role you specify.
Multi-invite links are managed via a Yandex Identity and Access Management service account with the organization-manager.passportUserAdminrole. You can select an existing service account or create a new one.
To generate a multi-use link:
In the Invite Expires In drop-down list, select how long the multi-use link will remain valid.
Optionally, in the Invitee limit field, specify the maximum number of users who can accept this multi-use link. For an unlimited number of users, leave this field empty.
Optionally, in the Unique invite link name field, enter a unique name for the multi-use link. Leave this field empty to generate a name automatically.
In the Role drop-down list, select a role for the users you invite.
Under Can accept, select an invitation limit:
Everyone: Any user can accept the invitation.
Specific users: Only specific users can accept the invitation:
SourceCraft users (optional): Start typing the public name, e.g., John Smith, or nickname, e.g., jsmith-2000, and select one of the suggested options. You can add multiple users.
Yandex logins (optional): Enter a user login and click Add login. You can add multiple users.
Under Service account, select one of the following options:
Auto: Yandex Cloud will automatically create a new service account with the organization-manager.passportUserAdminrole.
Choose existing: Select a Yandex Identity and Access Management service account to use for creating invites.
Click Add.
In the window that opens, copy the multi-use link to the clipboard, then close the window.
Warning
After you close the window, the multi-use link you generated will no longer be available. However, you can create a new one.
Send the multi-use link to the users you want to assign the role to.
Tip
You can assign roles in a repository to a whole group of users. For more information, see {#T}.
Assigning a role in a repository to a user via the API