Principal identifiers Stay organized with collections Save and categorize content based on your preferences.
When you refer to a principal in an Identity and Access Management (IAM) policy, you needto use the correct identifier for the principal. The format of the identifierdepends on thetype of principal you want to refer to andthe type of policy you're writing.
This page lists the identifier formats for each policy type's supportedprincipal types.
Principal identifiers for allow policies
The following table describes the principal identifiers forallowpolicies, which use the IAMv1 API.
These identifiers are also used forPrivileged Access Manager entitlements.
Preview — Principal identifiers for all service accounts in a project, folder, or organization This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.
| Principal type | Identifier |
|---|---|
| Google Account |
Example: |
| Service account |
Example: |
| All service accounts in a project, folder, or organization |
Example for all service accounts in a project: Example for all service accounts in all projects in a folder: Example for all service accounts in all projects in an organization: |
| Google group |
Example: |
| Google domain |
Example: |
| All users | allUsers |
| All authenticated users | allAuthenticatedUsers |
| Built-in resource identities | Only available for supported resources. The format varies depending on the resource. SeeResources with built-in identities for details. |
| Single identity in a workforce identity pool | principal://iam.googleapis.com/locations/global/workforcePools/POOL_ID/subject/SUBJECT_ATTRIBUTE_VALUEExample: |
| All workforce identities in a group | principalSet://iam.googleapis.com/locations/global/workforcePools/POOL_ID/group/GROUP_IDExample using a group email: Example using a group UUID: |
| All workforce identities with a specific attribute value | principalSet://iam.googleapis.com/locations/global/workforcePools/POOL_ID/attribute.ATTRIBUTE_NAME/ATTRIBUTE_VALUEExample: |
| All identities in a workforce identity pool | principalSet://iam.googleapis.com/locations/global/workforcePools/POOL_ID/*Example: |
| Single identity in a workload identity pool | principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ATTRIBUTE_VALUE |
| Workload identity pool group | principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/group/GROUP_ID |
| All identities in a workload identity pool with a certain attribute | principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/attribute.ATTRIBUTE_NAME/ATTRIBUTE_VALUE |
| All identities in a workload identity pool | principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/* |
| All GKE Pods that use a specific Kubernetes service account | By service account name: By service account ID: Legacy format: |
| All GKE Pods in a Kubernetes namespace, regardless of service account or cluster | principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/PROJECT_ID.svc.id.goog/namespace/NAMESPACE |
| All GKE Pods in a specific cluster | principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/PROJECT_ID.svc.id.goog/kubernetes.cluster/https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/CLUSTER_NAME |
| Deleted Google Account1 |
Example: |
| Deleted service account1 |
Example: |
| Deleted Google group1 |
Example: |
| Deleted single identity in a workforce identity pool1 |
Example: |
1 Don't add deleted principals when creating or modifying policies.
Principal identifiers for deny policies
The following table describes the principal identifiers fordenypolicies, which use the IAMv2 API.
Preview — Principal identifiers for all service accounts in a project, folder, or organization This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions. Preview — Principal identifiers for all service agents associated with a project, folder, or organization This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.
| Principal type | Identifier |
|---|---|
| Google Account |
Example: |
| Service account |
Example: |
| All service accounts in a project, folder, or organization |
Example for all service accounts in a project: Example for all service accounts in all projects in a folder: Example for all service accounts in all projects in an organization: |
| Allservice agents associated with a project, folder, or organization |
Example for all service agents associated with a project or its descendants: Example for all service agents associated with a folder or its descendants: Example for all service agents associated with an organization or its descendants: |
| Google group |
Example: |
| All principals | principalSet://goog/public:all |
| All principals in a Cloud Identity account (domain) |
Example: |
| Single identity in a workforce identity pool | principal://iam.googleapis.com/locations/global/workforcePools/POOL_ID/subject/SUBJECT_ATTRIBUTE_VALUEExample: |
| All workforce identities in a group | principalSet://iam.googleapis.com/locations/global/workforcePools/POOL_ID/group/GROUP_IDExample using a group email: Example using a group UUID: |
| All workforce identities with a specific attribute value | principalSet://iam.googleapis.com/locations/global/workforcePools/POOL_ID/attribute.ATTRIBUTE_NAME/ATTRIBUTE_VALUEExample: |
| All identities in a workforce identity pool | principalSet://iam.googleapis.com/locations/global/workforcePools/POOL_ID/*Example: |
| Single identity in a workload identity pool | principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ATTRIBUTE_VALUE |
| Workload identity pool group | principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/group/GROUP_ID |
| All identities in a workload identity pool with a certain attribute | principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/attribute.ATTRIBUTE_NAME/ATTRIBUTE_VALUE |
| All identities in a workload identity pool | principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/* |
| Deleted Google Account2 |
Example: |
| Deleted service account2 |
Example: |
| Deleted Google group2 |
Example: |
| Deleted single identity in a workforce identity pool2 |
Example: |
1Learn how to find your Cloud Identity customerID.
2 Don't add deleted principals when creating or modifying policies.
Principal identifiers for principal access boundary policy bindings
The following table describes the identifiers for the principal sets that youcan use inprincipal access boundary (PAB) policy bindings.Principal access boundary policy bindings which use the IAMv3API.
To learn which principals are included in each of these principal sets, seeSupported principal sets.
| Principal type | Identifier |
|---|---|
| Workforce identity pool |
Example: |
| Workload identity pool |
Example: |
| Google Workspace domain |
Example: |
| Project's principal set |
Example: |
| Folder's principal set |
Example: |
| Organization's principal set |
Example: |
1Learn how to find your Cloud Identity customerID.
Principal types for access policies
The following table describes the principal identifiers that you can use inaccess policies. You can use access policies to control access toEventarc resources. For more information, see theEventarcdocumentation.
Preview — Principal identifiers for all service accounts in a project, folder, or organization This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.
| Principal type | Identifier |
|---|---|
| User |
Example: |
| Service account |
Example: |
| All service accounts in a project, folder, or organization |
Example for all service accounts in a project: Example for all service accounts in all projects in a folder: Example for all service accounts in all projects in an organization: |
| Group |
Example: |
| All principals1 | principalSet://goog/public:all |
| All principals in a Cloud Identity account (domain) |
Example: |
1 This value can only be used in access policies with theDENYaction.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.