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.
Get a list of the policyDeletableItem objects and their properties, 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
List deleted crossTenantAccessPolicyConfigurationPartner objects:
GET /policies/deletedItems/crossTenantPartners
List deleted crossTenantIdentitySyncPolicyPartner objects:
GET /policies/deletedItems/crossTenantSyncPolicyPartners
List deleted conditionalAccessPolicy objects:
GET /identity/conditionalAccess/deletedItems/policies
List deleted namedLocation objects:
GET /identity/conditionalAccess/deletedItems/namedLocations
Optional query parameters
This method supports some of the 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 collection of policyDeletableItem objects in the response body. The @odata.context property in the request body indicates which type of policy is returned.
Examples
Example 1: Get deleted crossTenantAccessPolicyConfigurationPartner objects
Request
The following example shows a request for crossTenantAccessPolicyConfigurationPartner.
GET https://graph.microsoft.com/beta/policies/deletedItems/crossTenantPartners/
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",
"value": [
{
"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
}
},
{
"tenantId": "809cbbd2-2325-4c17-bd51-f8f098db19c8",
"deletedDateTime": "2025-06-18T22:53:31Z",
"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: Get deleted crossTenantIdentitySyncPolicyPartner objects
Request
The following example shows a request for crossTenantIdentitySyncPolicyPartner.
GET https://graph.microsoft.com/beta/policies/deletedItems/crossTenantSyncPolicyPartners/
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",
"value": [
{
"tenantId": "01d0e717-bc90-46ba-94a9-71b4a811fddb",
"displayName": null,
"deletedDateTime": "2025-06-18T23:11:01Z",
"externalCloudAuthorizedApplicationId": null,
"userSyncInbound": null
}
]
}
Example 3: Get deleted conditionalAccessPolicy objects
Request
The following example shows a request for a conditionalAccessPolicy.
GET https://graph.microsoft.com/beta/identity/conditionalAccess/deletedItems/policies
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",
"@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?$select=conditions,createdDateTime",
"value": [
{
"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: Get deleted namedLocation objects
Request
The following example shows a request for a namedLocation.
GET https://graph.microsoft.com/beta/identity/conditionalAccess/deletedItems/namedLocations
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",
"@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/namedLocations?$select=createdDateTime,displayName",
"value": [
{
"@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"
},
{
"@odata.type": "#microsoft.graph.ipNamedLocation",
"id": "003fe866-1f11-4356-8ddc-22e52f491cc5",
"displayName": "Pallav IP Test",
"modifiedDateTime": "2025-09-10T15:36:17.992593Z",
"createdDateTime": "2025-09-10T15:35:45.6440841Z",
"deletedDateTime": "2025-09-12T16:56:35Z",
"isTrusted": false,
"ipRanges": [
{
"@odata.type": "#microsoft.graph.iPv4CidrRange",
"cidrAddress": "127.30.27.128/30"
}
]
}
]
}