dcloud iam users attach-policy

Attach a policy directly to a user

IAM iam:AttachUserPolicyChanges state

Synopsis

dcloud iam users attach-policy id --policy-id policyId

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --policy-idRequired

    string

    The ID of the policy to attach, a policy of this organization

    Constraints: uuid

Example

dcloud iam users attach-policy id --policy-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.