---
title: "POST /v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy"
method: POST
path: "/v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy"
tags: ["organizations"]
---

# POST /v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy

`POST /v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy`

## Request

- Base URL: `https://securitycenter.googleapis.com`
- URL: `https://securitycenter.googleapis.com/v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/securitycenter`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/securitycenter`

## Path parameters

- `organizationsId` string, required
- `sourcesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GetIamPolicyRequest
  - `options` GetPolicyOptions
    - `requestedPolicyVersion` integer

## Response `200`

Successful response

- Policy
  - `auditConfigs` AuditConfig[]
    - `auditLogConfigs` AuditLogConfig[]
      - `exemptedMembers` string[]
      - `logType` 'LOG_TYPE_UNSPECIFIED' | 'ADMIN_READ' | 'DATA_WRITE' | 'DATA_READ'
    - `service` string
  - `bindings` Binding[]
    - `condition` Expr
      - `description` string
      - `expression` string
      - `location` string
      - `title` string
    - `members` string[]
    - `role` string
  - `etag` string, byte
  - `version` integer

## Changes

- **2026-11-14** `c55a92eb682a`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/securitycenter` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/securitycenter` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/securitycenter/changes/v1/organizations/:organizationsId/sources/:sourcesId:getIamPolicy/post.md)

---

[API](https://skmtc.dev/google/apis/securitycenter.md) - [All operations](https://skmtc.dev/google/apis/securitycenter/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/securitycenter/revisions/c55a92eb682a?raw)
