Some Google Cloud resources have [built-in
identities](https://docs.cloud.google.com/iam/docs/built-in-resource-identities). These identities let the resources act
like [principals](https://docs.cloud.google.com/iam/docs/principals-overview.md.txt). As a result, resources with built-in identities
can do the following:

- Be [granted IAM roles](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt) using the resource's principal identifier
- Access other resources without using [service agents](https://docs.cloud.google.com/iam/docs/service-account-types.md.txt#service-agents)

## Principal identifiers for single resources

The following table lists the resource types that have built-in identities. It
also lists the accepted formats for the resource's principal identifier. Use one
of the accepted formats for the principal identifier in your allow policies to
grant roles to the resource.

| Resource type | Principal identifier format |
|---|---|
| [Parameter Manager](https://docs.cloud.google.com/secret-manager/parameter-manager/docs/overview.md.txt) parameters | `principal://parametermanager.googleapis.com/projects/PROJECT_NUMBER/uid/locations/global/parameters/PARAMETER_UID` |
| [Workload identity pool](https://docs.cloud.google.com/iam/docs/workload-identity-federation.md.txt#pools) [(preview)](https://cloud.google.com/products#product-launch-stages) | ` principal://iam.googleapis.com/projects/PROJECT_NUMBER/name/locations/global/workloadIdentityPools/WORKLOAD_IDENTITY_POOL_NAME` |
| [Knowledge Catalog](https://docs.cloud.google.com/dataplex/docs) data domains [(preview)](https://cloud.google.com/products#product-launch-stages) | `principal://dataplex.googleapis.com/projects/PROJECT_NUMBER/name/locations/LOCATION/dataDomains/DATA_DOMAIN_ID` |

## Principal identifiers for sets of resources

Use the following formats in your allow policies to grant roles to sets of
resources with built-in identities:

> [!NOTE]
> **Note:** These principal sets don't include resources that don't have built-in identities.

| Description | Format |
|---|---|
| All resources for the specified service in the specified project | `principalSet://RESOURCE_SERVICE/projects/PROJECT_NUMBER/*` |
| All resources in the specified project with the specified type | `principalSet://RESOURCE_SERVICE/projects/PROJECT_NUMBER/type/RESOURCE_TYPE/*` |
| All resources with the specified ancestor | `principalSet://RESOURCE_SERVICE/projects/PROJECT_NUMBER/ancestor.name/ANCESTOR_RESOURCE_TYPE/ANCESTOR_RESOURCE_NAME` `principalSet://RESOURCE_SERVICE/projects/PROJECT_NUMBER/ancestor.uid/ANCESTOR_RESOURCE_TYPE/ANCESTOR_RESOURCE_UID` |
| All resources with the specified type and the specified ancestor | `principalSet://RESOURCE_SERVICE/projects/PROJECT_NUMBER/type/RESOURCE_TYPE/ancestor.name/ANCESTOR_RESOURCE_TYPE/ANCESTOR_RESOURCE_NAME` `principalSet://RESOURCE_SERVICE/projects/PROJECT_NUMBER/type/RESOURCE_TYPE/ancestor.uid/ANCESTOR_RESOURCE_TYPE/ANCESTOR_RESOURCE_UID` |