Skip to main content

Adds policy members

POST 

https://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.

Body

required
    members string[]required

    List of members to add to the policy.

Responses

A successful response.

Schema
    members string[]
curl -L -X GET 'https://apis.<domain>' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
Request Collapse all
Base URL
https://apis.<domain>
Parameters
— pathrequired
Body required
{
"members": [
"team:local:viewers",
"user:local:test"
]
}