dcloud iam members set-role

Change a member org role and swap its preset policy

IAM iam:UpdateMemberChanges stateAsks before it deletes (-y skips)

Synopsis

dcloud iam members set-role id --role role

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --roleRequired

    enum

    The member’s new organization role; its preset policy replaces the old role’s on their IAM user. The owner’s cannot be changed

    One of: admin, member, viewer, billing

Example

dcloud iam members set-role id --role admin

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