Skip to main content

Replaces policy members

PUT 

https://apis.<domain>/iam/policies/:id/members

Replaces the entire member list of a specific policy with a new list. 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:update

Request

Path Parameters

    id stringrequired

    ID of the policy.

Body

required
    members string[]

    List of members that replaces previous policy member list.

Responses

A successful response.

Schema
    members string[]

    Resulting list of policy members.

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