---
title: "POST /v1alpha1/policies:set"
method: POST
path: "/v1alpha1/policies:set"
tags: ["policies"]
---

# POST /v1alpha1/policies:set

`POST /v1alpha1/policies:set`

Sets the access control policy on the specified resource. Replaces any existing policy.

## Request body

- SasPortalSetPolicyRequest — Request message for `SetPolicy` method.
  - `policy` SasPortalPolicy — Defines an access control policy to the resources.
    - `assignments` SasPortalAssignment[] — List of assignments
      - `members` string[] — The identities the role is assigned to. It can have the following values: * `{user_email}`: An email address that represents a specific Google account. For example: `alice@gmail.com`. * `{group_email}`: An email address that represents a Google group. For example, `viewers@gmail.com`.
      - `role` string — Required. Role that is assigned to `members`.
    - `etag` string, byte — The etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to GetPolicy, and systems are expected to put that etag in the request to SetPolicy to ensure that their change will be applied to the same version of the policy. If no etag is provided in the call to GetPolicy, then the existing policy is overwritten blindly.
  - `resource` string — Required. The resource for which the policy is being specified. This policy replaces any existing policy.
  - `disableNotification` boolean — Optional. Set the field as `true` to disable the onboarding notification.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/prod-tt-sasportal.md) · [All operations](https://skmtc.net/google/apis/prod-tt-sasportal/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/prod-tt-sasportal/revisions/1a009d78db94/schema)
