Adds policy members
POSThttps://apis.<domain>/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
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://apis.<domain>' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'