Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Read the properties and relationships of a policyDeletableItem object, which might be one of the following deleted policy types:
- crossTenantAccessPolicyConfigurationPartner
- crossTenantIdentitySyncPolicyPartner
- conditionalAccessPolicy
- namedLocation
This API is available in the following national cloud deployments.
| Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
|---|---|---|---|
| ✅ | ❌ | ❌ | ❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permissions for retrieving cross-tenant access policy objects
| Permission type | Least privileged permission | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | Not supported. | Not supported. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | Not supported. | Not supported. |
Important
In delegated scenarios with work or school accounts where the signed-in user is acting on another user, they must be assigned a supported Microsoft Entra role or a custom role with a supported role permission. The following least privileged roles are supported for this operation.
- Security Reader - read basic properties
- Global Reader - read basic properties
- Global Secure Access Administrator - read basic properties excluding identity synchronization settings
- Teams Administrator - read basic properties excluding identity synchronization settings
- Security Administrator
Permissions for retrieving conditional access policy objects
| Permission type | Least privileged permissions | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | Policy.Read.All | Not available. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | Policy.Read.All | Not available. |
Important
In delegated scenarios with work or school accounts where the signed-in user is acting on another user, they must be assigned a supported Microsoft Entra role or a custom role with a supported role permission. The following least privileged roles are supported for this operation.
- Global Secure Access Administrator - read standard properties
- Security Reader - read standard properties
- Security Administrator - read standard properties
- Global Reader
- Conditional Access Administrator
HTTP request
Get a deleted crossTenantAccessPolicyConfigurationPartner object:
GET /policies/deletedItems/crossTenantPartners/{id}
Get a deleted crossTenantIdentitySyncPolicyPartner object:
GET /policies/deletedItems/crossTenantSyncPolicyPartners/{id}
Get a deleted conditionalAccessPolicy object:
GET /identity/conditionalAccess/deletedItems/policies/{id}
Get a deleted namedLocation object:
GET /identity/conditionalAccess/deletedItems/namedLocations/{id}
Optional query parameters
This method doesn't support OData query parameters to help customize the response. For general information, see OData query parameters.
Request headers
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Request body
Don't supply a request body for this method.
Response
If successful, this method returns a 200 OK response code and a policyDeletableItem object in the response body. The @odata.context property in the request body indicates which type of policy is returned.
Examples
Example 1: Retrieve a deleted crossTenantAccessPolicyConfigurationPartner object
Request
The following example shows a request for a crossTenantAccessPolicyConfigurationPartner.
GET https://graph.microsoft.com/beta/policies/deletedItems/crossTenantPartners/01d0e717-bc90-46ba-94a9-71b4a811fddb
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft-ppe.com/testppebetadeleteapis/$metadata#policies/deletedItems/crossTenantPartners/$entity",
"tenantId": "01d0e717-bc90-46ba-94a9-71b4a811fddb",
"deletedDateTime": "2025-06-18T22:58:04Z",
"displayName": null,
"isServiceProvider": null,
"isInMultiTenantOrganization": false,
"blockServiceProviderOutboundAccess": null,
"inboundTrust": null,
"b2bCollaborationOutbound": null,
"b2bCollaborationInbound": null,
"b2bDirectConnectOutbound": null,
"b2bDirectConnectInbound": null,
"tenantRestrictions": null,
"invitationRedemptionIdentityProviderConfiguration": null,
"crossCloudMeetingConfiguration": {
"inboundAllowed": null,
"outboundAllowed": null
},
"automaticUserConsentSettings": {
"inboundAllowed": null,
"outboundAllowed": null
},
"protectedContentSharing": {
"inboundAllowed": null,
"outboundAllowed": null
}
}
Example 2: Retrieve a deleted crossTenantIdentitySyncPolicyPartner object
Request
The following example shows a request for a crossTenantIdentitySyncPolicyPartner.
GET https://graph.microsoft.com/beta/policies/deletedItems/crossTenantSyncPolicyPartners/01d0e717-bc90-46ba-94a9-71b4a811fddb
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft-ppe.com/testppebetadeleteapis/$metadata#policies/deletedItems/crossTenantSyncPolicyPartners/$entity",
"tenantId": "01d0e717-bc90-46ba-94a9-71b4a811fddb",
"displayName": null,
"deletedDateTime": "2025-06-18T23:11:01Z",
"externalCloudAuthorizedApplicationId": null,
"userSyncInbound": null
}
Example 3: Retrieve a deleted conditionalAccessPolicy object
Request
The following example shows a request for a conditionalAccessPolicy.
GET https://graph.microsoft.com/beta/identity/conditionalAccess/deletedItems/policies/1a71ea59-9583-4f16-9de4-47ecb42adfc6
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#identity/conditionalAccess/deletedItems/policies/$entity",
"@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET identity/conditionalAccess/deletedItems/policies('<guid>')?$select=conditions,createdDateTime",
"id": "1a71ea59-9583-4f16-9de4-47ecb42adfc6",
"templateId": null,
"displayName": "Demo",
"createdDateTime": "2024-06-26T22:13:41.3634477Z",
"modifiedDateTime": "2025-01-22T17:30:09.4040798Z",
"state": "disabled",
"deletedDateTime": "2025-09-12T17:01:05Z",
"partialEnablementStrategy": null,
"sessionControls": null,
"conditions": {
"userRiskLevels": [],
"signInRiskLevels": [],
"clientAppTypes": [
"all"
],
"platforms": null,
"times": null,
"deviceStates": null,
"devices": null,
"applications": {
"includeApplications": [
"None"
],
"excludeApplications": [],
"includeUserActions": [],
"includeAuthenticationContextClassReferences": [],
"applicationFilter": null
},
"users": {
"includeUsers": [
"None"
],
"excludeUsers": [],
"includeGroups": [],
"excludeGroups": [],
"includeRoles": [],
"excludeRoles": [],
"includeGuestsOrExternalUsers": null,
"excludeGuestsOrExternalUsers": null
},
"locations": {
"includeLocations": [
"41f20046-7b5b-4721-b049-eccd63d614ef"
],
"excludeLocations": []
},
"clientApplications": {
"includeServicePrincipals": [
"ServicePrincipalsInMyTenant"
],
"excludeServicePrincipals": []
}
},
"grantControls": {
"operator": "OR",
"builtInControls": [
"block"
],
"customAuthenticationFactors": [],
"termsOfUse": [],
"authenticationStrength@odata.context": "https://graph.microsoft.com/beta/$metadata#identity/conditionalAccess/deletedItems/policies('1a71ea59-9583-4f16-9de4-47ecb42adfc6')/grantControls/authenticationStrength/$entity",
"authenticationStrength": null
}
}
Example 4: Retrieve a deleted namedLocation object
Request
The following example shows a request for a namedLocation.
GET https://graph.microsoft.com/beta/identity/conditionalAccess/deletedItems/namedLocations/1a4c0633-332f-4691-a27a-fd8334938a62
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#identity/conditionalAccess/deletedItems/namedLocations/$entity",
"@odata.type": "#microsoft.graph.countryNamedLocation",
"id": "1a4c0633-332f-4691-a27a-fd8334938a62",
"displayName": "Calvin Test USA",
"modifiedDateTime": "2025-09-05T22:12:01.4444669Z",
"createdDateTime": "2025-09-05T22:12:01.4444669Z",
"deletedDateTime": "2025-09-08T16:03:43Z",
"countriesAndRegions": [
"US"
],
"includeUnknownCountriesAndRegions": false,
"countryLookupMethod": "clientIpAddress"
}