Managing self-service users

You can add more domain administrators and project members, as described in Configuring multitenancy. Also, you can edit user credentials and permissions, manage project assignment, as well as enable/disable and delete the existing users. Enabling and disabling users allows or prohibits user login in the self-service panel.

To edit user credentials and permissions

Admin panel

  1. On the Settings > Projects and users screen, click the domain, within which you want to edit a user.
  2. Go to the Domain users tab, click the ellipsis icon next to the user, and then click Edit.
  3. Make the required changes, and then click Save.

    A description should not contain any personally identifiable information or sensitive business data.

Command-line interface

Use the following command:

vinfra domain user set [--password] [--email <email>] [--name <name>] [--description <description>]
                       [--domain-permissions <domain_permissions>] --domain <domain> <user>
--password
Request the password from stdin
--email <email>
User email
--name <name>
User name
--description <description>

User description

A description should not contain any personally identifiable information or sensitive business data.

--domain-permissions <domain_permissions>
A comma-separated list of domain permissions. View the list of available domain permissions using vinfra domain user list-available-roles | grep domain.
--domain <domain>
Domain name or ID
<user>
User ID or name

For example, to change the email of the user myuser to user@example.com, run:

# vinfra domain user set myuser --domain mydomain --email user@example.com

To enable or disable a user

Admin panel

  1. On the Settings > Projects and users screen, click the domain, within which you want to edit a user.
  2. Go to the Domain users tab, click the ellipsis icon next to the user, and then click Enable or Disable.

Command-line interface

Use the following command:

vinfra domain user set [--enable | --disable] --domain <domain> <user>
--enable
Enable user
--disable
Disable user
--domain <domain>
Domain name or ID
<user>
User ID or name

For example, to disable the user myuser within the domain mydomain, run:

# vinfra domain user set myuser --domain mydomain --disable

To assign a user to projects

Admin panel

  1. On the Settings > Projects and users screen, click the domain, within which you want to edit a user.
  2. Go to the Domain users tab, click the ellipsis icon next to a user with the Project member role, and then click Manage projects.
  3. In the Manage projects window, select only those projects that you want to assign the user to, and then click Save.

Command-line interface

Use the following command:

vinfra domain user set --assign <project> <role> --domain <domain> <user>
--assign <project> <role>

Assign a user to a project with one or more permission sets. Specify this option multiple times to assign the user to multiple projects.

  • <project>: project ID or name
  • <role>: user role in the project (project_admin)
--domain <domain>
Domain name or ID
<user>
User ID or name

For example, to assign the user myuser from the domain mydomain to the project myproject as a project administrator, run:

# vinfra domain user set myuser --domain mydomain --assign myproject project_admin

To unassign a user from projects

Admin panel

  1. On the Settings > Projects and users screen, click the domain, within which you want to edit a user.
  2. Go to the Domain users tab, click the required user with the Project member role.
  3. On the Projects tab, click the bin icon next to a project that you want to remove the user from.

Command-line interface

Use the following command:

vinfra domain user set --unassign <project> --domain <domain> <user>
--unassign <project>

Unassign a user from a project. Specify this option multiple times to unassign the user from multiple projects.

  • <project>: project ID or name
--domain <domain>
Domain name or ID
<user>
User ID or name

For example, to unassign the user myuser from the domain mydomain from the project myproject, run:

# vinfra domain user set myuser --domain mydomain --unassign myproject

To delete a user

Admin panel

  1. On the Settings > Projects and users screen, click the domain, within which you want to delete a user.
  2. Go to the Domain users tab, click the ellipsis icon next to it, and then click Delete.
  3. Click Delete in the confirmation window.

Command-line interface

Use the following command:

vinfra domain user delete --domain <domain> <user>
--domain <domain>
Domain ID or name
<user>
User ID or name

For example, to delete the user myuser from the domain mydomain:

# vinfra domain user delete myuser --domain mydomain