Adds policy members
POST/iam/policies/:id/members:add
Adds members to the member list of a specific policy. Use this endpoint to update members of either custom or compiuta-managed policies.
Ensure each element of the members array is in the correct format.
Authorization Action:
iam:policyMembers:create
Request
Path Parameters
id stringrequired
ID of the policy.
- application/json
Body
required
members string[]required
List of members to add to the policy.
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
members string[]
{
"members": [
"team:local:viewers",
"user:local:test"
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...