Managing self-service users
You can add more domain administrators and project members, as described in Configuring multitenancy. Also, you can edit, assign to projects, 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
Admin panel
- On the Settings > Projects and users screen, click the domain, within which you want to create a user.
- Go to the Domain users tab, click the ellipsis icon next to the user, and then click Edit.
- Make the required changes, and then click Save.
Command-line interface
Use the following command:
vinfra domain user set [--password] [--email <email>] [--name <name>]
--domain <domain> <user>
--password- Request the password from stdin
--email <email>- User email
--name <name>- User name
--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
- On the Settings > Projects and users screen, click the domain, within which you want to create a user.
- 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 a project
Admin panel
- On the Settings > Projects and users screen, click the domain, within which you want to create a user.
- Go to the Domain users tab, click the ellipsis icon next to a user with the Project member role, and then click Assign to project.
- In the Assign user to projects window, select projects to assign the user to, and then click Assign.
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 delete a user
Admin panel
- On the Settings > Projects and users screen, click the domain, within which you want to create a user.
- Go to the Domain users tab, click the ellipsis icon next to it, and then click Delete.
- 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