ByCloud Docs
GuidesCLIAPISDK

Attach policy to user

bycloud iam users-policies --user_id <user_id> --policy_id <policy_id> [flags]

Attach a policy to a user

Options

--user_id

stringrequired

User ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Body Options

--policy_id

stringrequired

Command

bycloud iam users-policies \
--user_id "abc-123" \
--policy_id "abc-123"

Output

Success