dcloud iam members set-roleChange 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 roleArguments
<id>Requiredstring
Also accepted as
--id. Constraints: uuid
Flags
--roleRequiredenum
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 adminGenerated from the API description, the same one the API checks requests against and the CLI is built from.