> [!NOTE]
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

As a Privileged Access Manager settings viewer, you can view the Privileged Access Manager settings for an organization, folder, or project. You can also export settings programmatically using the Google Cloud CLI.

<br />

## Before you begin


To get the permissions that
you need to view Privileged Access Manager settings,

ask your administrator to grant you the
following IAM roles on the organization, folder, or project:

- To view settings: [PAM Settings Viewer](https://docs.cloud.google.com/iam/docs/roles-permissions/privilegedaccessmanager.md.txt#privilegedaccessmanager.settingsViewer) (`roles/privilegedaccessmanager.settingsViewer`)


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).


These predefined roles contain

the permissions required to view Privileged Access Manager settings. To see the exact permissions that are
required, expand the **Required permissions** section:


#### Required permissions

The following permissions are required to view Privileged Access Manager settings:

- To view settings:
  - `privilegedaccessmanager.settings.get`
  - `privilegedaccessmanager.settings.fetchEffective`


You might also be able to get
these permissions
with [custom roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles.md.txt) or
other [predefined roles](https://docs.cloud.google.com/iam/docs/roles-overview.md.txt#predefined).

## View settings

### Console

1. Go to the **Privileged Access Manager** page.

   [Go to Privileged Access Manager](https://console.cloud.google.com/iam-admin/pam/entitlements/)
2. Select the organization, folder, or project that you want to view
   Privileged Access Manager settings for.

3. Click the **Settings** tab.

The **Settings** page displays the Privileged Access Manager settings details for the
selected resource.

### gcloud

You can view the following settings for a resource:

- [Individual settings](https://docs.cloud.google.com/iam/docs/pam-view-export-settings.md.txt#individual-settings) that are directly set on the resource.
- [Effective settings](https://docs.cloud.google.com/iam/docs/pam-view-export-settings.md.txt#effective-settings) that are set on the resource or inherited
  from its parent resource.

  #### View individual settings for a resource


  The

  `gcloud alpha pam settings describe`

  command views Privileged Access Manager settings.


  Before using any of the command data below,
  make the following replacements:
  - `RESOURCE_TYPE`: Optional. The resource type that you want to retrieve the settings for. Use the value `organization`, `folder`, or `project`.
  - `RESOURCE_ID`: Used with <var translate="no">`RESOURCE_TYPE`</var>. The ID of the Google Cloud project, folder, or organization that you want to manage entitlements for. Project IDs are alphanumeric strings, like `my-project`. Folder and organization IDs are numeric, like `123456789012`.


  Execute the

  following

  command:

  #### Linux, macOS, or Cloud Shell

  ```bash
  gcloud alpha pam settings describe \
      --location=global \
      -- RESOURCE_TYPE=RESOURCE_ID \
  ```

  #### Windows (PowerShell)

  ```bash
  gcloud alpha pam settings describe `
      --location=global `
      -- RESOURCE_TYPE=RESOURCE_ID `
  ```

  #### Windows (cmd.exe)

  ```bash
  gcloud alpha pam settings describe ^
      --location=global ^
      -- RESOURCE_TYPE=RESOURCE_ID ^
  ```

  You should receive a response similar to the following:

  ```
  createTime: '2025-05-18T10:10:10.101010101Z'
  emailNotificationSettings:
    customNotificationBehavior:
      adminNotifications:
        grantActivated: ENABLED
        grantActivationFailed: DISABLED
        grantEnded: ENABLED
        grantExternallyModified: ENABLED
      approverNotifications:
        pendingApproval: ENABLED
      requesterNotifications:
        entitlementAssigned: ENABLED
        grantActivated: ENABLED
        grantExpired: ENABLED
        grantRevoked: ENABLED
  etag: "ZjlkNWZlMWUtNDlhYS00YjJjAYlzNWYtZWFkNGVjOWU3NWMkBwYRsottW5Md"
  name: RESOURCE_TYPE/RESOURCE_ID/locations/global/settings
  serviceAccountApproverSettings:
    enabled: true
  updateTime: '2025-05-18T10:10:10.101010101Z'
  ```

  <br />

  #### View effective settings on a resource


  The

  `gcloud alpha pam settings describe-effective`

  command views Privileged Access Manager settings.


  Before using any of the command data below,
  make the following replacements:
  - `RESOURCE_TYPE`: Optional. The resource type that you want to retrieve the settings for. Use the value `organization`, `folder`, or `project`.
  - `RESOURCE_ID`: Used with <var translate="no">`RESOURCE_TYPE`</var>. The ID of the Google Cloud project, folder, or organization that you want to manage entitlements for. Project IDs are alphanumeric strings, like `my-project`. Folder and organization IDs are numeric, like `123456789012`.


  Execute the

  following

  command:

  #### Linux, macOS, or Cloud Shell

  ```bash
  gcloud alpha pam settings describe-effective \
      --location=global \
      --RESOURCE_TYPE=RESOURCE_ID \
  ```

  #### Windows (PowerShell)

  ```bash
  gcloud alpha pam settings describe-effective `
      --location=global `
      --RESOURCE_TYPE=RESOURCE_ID `
  ```

  #### Windows (cmd.exe)

  ```bash
  gcloud alpha pam settings describe-effective ^
      --location=global ^
      --RESOURCE_TYPE=RESOURCE_ID ^
  ```

  You should receive a response similar to the following:

  ```
  emailNotificationSettings:
    customNotificationBehavior:
      adminNotifications:
        notifyGrantActivated: true
        notifyGrantActivationFailed: true
        notifyGrantEnded: true
        notifyGrantExternallyModified: true
      approverNotifications:
        notifyPendingApproval: true
      requesterNotifications:
        notifyEntitlementAssigned: true
        notifyEntitlementUpdated: true
        notifyGrantActivated: true
        notifyGrantActivationFailed: true
        notifyGrantEnded: true
        notifyGrantExpired: true
        notifyGrantExternallyModified: true
        notifyGrantRevoked: true
  parent: RESOURCE_TYPE/RESOURCE_ID/locations/global
  serviceAccountApproverSettings: {}
  ```

  <br />

### REST

You can view the following settings for a resource:

- [Individual settings](https://docs.cloud.google.com/iam/docs/pam-view-export-settings.md.txt#individual-settings2) that are directly set on the resource.
- [Effective settings](https://docs.cloud.google.com/iam/docs/pam-view-export-settings.md.txt#effective-settings2) that are set on the resource or inherited
  from its parent resource.

  #### View individual settings for a resource


  The Privileged Access Manager API's
  `getSettings`
  method views Privileged Access Manager settings.


  Before using any of the request data,
  make the following replacements:
  - `SCOPE`: The organization, folder, or project that you want to retrieve the settings for, in the format of `organizations/ORGANIZATION_ID`, `folders/FOLDER_ID`, or `projects/PROJECT_ID`. Project IDs are alphanumeric strings, like `my-project`. Folder and organization IDs are numeric, like `123456789012`.


  HTTP method and URL:

  ```
  GET https://privilegedaccessmanager.googleapis.com/v1beta/SCOPE/locations/global/settings
  ```

  To send your request, expand one of these options:

  #### curl (Linux, macOS, or Cloud Shell)

  > [!NOTE]
  > **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](https://docs.cloud.google.com/sdk/gcloud/reference/init) or [`gcloud auth login`](https://docs.cloud.google.com/sdk/gcloud/reference/auth/login.md.txt) , or by using [Cloud Shell](https://docs.cloud.google.com/shell/docs.md.txt), which automatically logs you into the `gcloud` CLI . You can check the currently active account by running [`gcloud auth list`](https://docs.cloud.google.com/sdk/gcloud/reference/auth/list.md.txt).


  Execute the following command:

  ```
  curl -X GET \
       -H "Authorization: Bearer $(gcloud auth print-access-token)" \
       "https://privilegedaccessmanager.googleapis.com/v1beta/SCOPE/locations/global/settings"
  ```

  #### PowerShell (Windows)

  > [!NOTE]
  > **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](https://docs.cloud.google.com/sdk/gcloud/reference/init) or [`gcloud auth login`](https://docs.cloud.google.com/sdk/gcloud/reference/auth/login.md.txt) . You can check the currently active account by running [`gcloud auth list`](https://docs.cloud.google.com/sdk/gcloud/reference/auth/list.md.txt).


  Execute the following command:

  ```
  $cred = gcloud auth print-access-token
  $headers = @{ "Authorization" = "Bearer $cred" }

  Invoke-WebRequest `
      -Method GET `
      -Headers $headers `
      -Uri "https://privilegedaccessmanager.googleapis.com/v1beta/SCOPE/locations/global/settings" | Select-Object -Expand Content
  ```

  You should receive a JSON response similar to the following:

  ```
  {
    "createTime": "2025-05-18T10:10:10.101010101Z",
    "emailNotificationSettings": {
      "customNotificationBehavior": {
        "adminNotifications": {
          "grantActivated": "ENABLED",
          "grantActivationFailed": "DISABLED",
          "grantEnded": "ENABLED",
          "grantExternallyModified": "ENABLED"
        },
        "approverNotifications": {
          "pendingApproval": "ENABLED"
        },
        "requesterNotifications": {
          "entitlementAssigned": "ENABLED",
          "grantActivated": "ENABLED",
          "grantExpired": "ENABLED",
          "grantRevoked": "ENABLED"
        }
      }
    },
    "etag": "\"ZjlkNWZlMWUtNDlhYS00YjJjAYlzNWYtZWFkNGVjOWU3NWMkBwYRsottW5Md\"",
    "name": "SCOPE/locations/global/settings",
    "serviceAccountApproverSettings": {
      "enabled": true
    },
    "updateTime": "2025-05-18T10:10:10.101010101Z"
  }

  ```

  <br />

  #### View effective settings on a resource


  The Privileged Access Manager API's
  `fetchEffectiveSettings`
  method views Privileged Access Manager settings.


  Before using any of the request data,
  make the following replacements:
  - `SCOPE`: The organization, folder, or project that you want to retrieve the settings for, in the format of `organizations/ORGANIZATION_ID`, `folders/FOLDER_ID`, or `projects/PROJECT_ID`. Project IDs are alphanumeric strings, like `my-project`. Folder and organization IDs are numeric, like `123456789012`.


  HTTP method and URL:

  ```
  GET https://privilegedaccessmanager.googleapis.com/v1beta/SCOPE/locations/global:effectiveSettings
  ```

  To send your request, expand one of these options:

  #### curl (Linux, macOS, or Cloud Shell)

  > [!NOTE]
  > **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](https://docs.cloud.google.com/sdk/gcloud/reference/init) or [`gcloud auth login`](https://docs.cloud.google.com/sdk/gcloud/reference/auth/login.md.txt) , or by using [Cloud Shell](https://docs.cloud.google.com/shell/docs.md.txt), which automatically logs you into the `gcloud` CLI . You can check the currently active account by running [`gcloud auth list`](https://docs.cloud.google.com/sdk/gcloud/reference/auth/list.md.txt).


  Execute the following command:

  ```
  curl -X GET \
       -H "Authorization: Bearer $(gcloud auth print-access-token)" \
       "https://privilegedaccessmanager.googleapis.com/v1beta/SCOPE/locations/global:effectiveSettings"
  ```

  #### PowerShell (Windows)

  > [!NOTE]
  > **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](https://docs.cloud.google.com/sdk/gcloud/reference/init) or [`gcloud auth login`](https://docs.cloud.google.com/sdk/gcloud/reference/auth/login.md.txt) . You can check the currently active account by running [`gcloud auth list`](https://docs.cloud.google.com/sdk/gcloud/reference/auth/list.md.txt).


  Execute the following command:

  ```
  $cred = gcloud auth print-access-token
  $headers = @{ "Authorization" = "Bearer $cred" }

  Invoke-WebRequest `
      -Method GET `
      -Headers $headers `
      -Uri "https://privilegedaccessmanager.googleapis.com/v1beta/SCOPE/locations/global:effectiveSettings" | Select-Object -Expand Content
  ```

  You should receive a JSON response similar to the following:

  ```
  {
    "emailNotificationSettings": {
      "customNotificationBehavior": {
        "adminNotifications": {
          "notifyGrantActivated": "true",
          "notifyGrantActivationFailed": "true",
          "notifyGrantEnded": "true",
          "notifyGrantExternallyModified": "true"
        },
        "approverNotifications": {
          "notifyPendingApproval": "true"
        },
        "requesterNotifications": {
          "notifyEntitlementAssigned": "true",
          "notifyEntitlementUpdated": "true",
          "notifyGrantActivated": "true",
          "notifyGrantActivationFailed": "true",
          "notifyGrantEnded": "true",
          "notifyGrantExpired": "true",
          "notifyGrantExternallyModified": "true",
          "notifyGrantRevoked": "true"
        }
      }
    },
    "parent": "SCOPE/locations/global",
    "serviceAccountApproverSettings": {}
  }

  ```

  <br />

## Export settings programmatically using the gcloud CLI


The

`gcloud alpha pam settings export`

command retrieves and exports the settings for a specific resource.


Before using any of the command data below,
make the following replacements:

- `FILENAME`: The filename to export the settings contents to.
- `RESOURCE_TYPE`: Optional. The resource type that the corresponding resource belongs to. Use the value `organization`, `folder`, or `project`.
- `RESOURCE_ID`: Used with <var translate="no">`RESOURCE_TYPE`</var>. The ID of the Google Cloud project, folder, or organization that you want to manage entitlements for. Project IDs are alphanumeric strings, like `my-project`. Folder and organization IDs are numeric, like `123456789012`.


Execute the

following

command:

#### Linux, macOS, or Cloud Shell

```bash
gcloud alpha pam settings export \
    --destination=FILENAME.yaml \
    --location=global \
    -- RESOURCE_TYPE=RESOURCE_ID
```

#### Windows (PowerShell)

```bash
gcloud alpha pam settings export `
    --destination=FILENAME.yaml `
    --location=global `
    -- RESOURCE_TYPE=RESOURCE_ID
```

#### Windows (cmd.exe)

```bash
gcloud alpha pam settings export ^
    --destination=FILENAME.yaml ^
    --location=global ^
    -- RESOURCE_TYPE=RESOURCE_ID
```

You should receive a response similar to the following:

```
Exported [RESOURCE_TYPE/RESOURCE_ID/locations/global/settings] to FILENAME.yaml.
```

## What's next

- [Create entitlements](https://docs.cloud.google.com/iam/docs/pam-create-entitlements.md.txt)