dcloud iam users assign-role

Assign a role to a user

IAM iam:AssignUserRoleChanges state

Synopsis

dcloud iam users assign-role id --role-id roleId

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --role-idRequired

    string

    The ID of the role to assign, a role of this organization

    Constraints: uuid

Example

dcloud iam users assign-role id --role-id 00000000-0000-0000-0000-000000000000

Generated from the API description, the same one the API checks requests against and the CLI is built from.