vinfra domain user set

Modify the parameters of a domain user:

usage: vinfra domain user set [--password] [--email <email>]
                              [--description <description>]
                              [--assign <project> <role>]
                              [--assign-domain <domain> <roles>]
                              [--unassign-domain <domain>]
                              [--domain-permissions <domain_permissions>]
                              [--system-permissions <system_permissions>]
                              [--enable | --disable] [--name <name>]
                              --domain <domain> <user>
--password
Request the password from stdin
--email <email>
User email
--description <description>
User description
--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)
--assign-domain <domain> <roles>

Assign a user to a domain with one or more permission sets. Specify this option multiple times to assign the user to multiple domains. This option is only valid for service accounts.

  • <domain>: domain ID or name
  • <roles>: a comma-separated list of service account roles (compute)
--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.
--enable
Enable user
--disable
Disable user
--name <name>
User name
--domain <domain>
Domain name or ID
<user>
User ID or name

Example:

# vinfra domain user set myuser --domain mydomain \
--assign myproject project_admin
+--------------------+------------------------------------------------+
| Field              | Value                                          |
+--------------------+------------------------------------------------+
| assigned_domains   | []                                             |
| assigned_projects  | - project_id: d1c4d6198fb940e6b971cf306571ebbd |
|                    |   role: project_admin                          |
| description        |                                                |
| domain_id          | 2929ff42b1e64884a05dea3011862aed               |
| domain_permissions | []                                             |
| email              |                                                |
| enabled            | True                                           |
| id                 | a9c67c6acf1f4df1818fdeeee0b4bd5e               |
| name               | myuser                                         |
| role               | project_member                                 |
| system_permissions | []                                             |
| tags               | []                                             |
+--------------------+------------------------------------------------+

This command assigns the user myuser from the domain mydomain to the project myproject as a project administrator.