osc identity domain user role set

Assigns a role to a user on a domain.

Relationship: https://developer.openstack.org/api-ref/identity/v3/index.html#assign-role-to-user-on-domain

Usage: osc identity domain user role set <--domain-name <DOMAIN_NAME>|--domain-id <DOMAIN_ID>|--current-domain> <--user-name <USER_NAME>|--user-id <USER_ID>|--current-user> <ID>

Arguments:

  • <ID> — role_id parameter for /v3/domains/{domain_id}/users/{user_id}/roles/{role_id} API

Options:

  • --domain-name <DOMAIN_NAME> — Domain Name
  • --domain-id <DOMAIN_ID> — Domain ID
  • --current-domain — Current domain
  • --user-name <USER_NAME> — User Name
  • --user-id <USER_ID> — User ID
  • --current-user — Current authenticated user