Get conditionalAccessPolicy

Namespace: microsoft.graph

Retrieve the properties and relationships of a conditionalAccessPolicy object.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet


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.

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.

HTTP request

GET /identity/conditionalAccess/policies/{id}

Optional query parameters

This method supports the $select OData query parameter 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.


If successful, this method returns a 200 OK response code and the requested conditionalAccessPolicy object in the response body.



The following example shows a request.



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": "$metadata#conditionalAccess/policies/$entity",
    "id": "6b5e999b-0ba8-4186-a106-e0296c1c4358",
    "displayName": "Demo app for documentation",
    "createdDateTime": "2019-09-26T23:12:16.0792706Z",
    "modifiedDateTime": "2019-09-27T00:12:12.5986473Z",
    "state": "disabled",
    "conditions": {
        "signInRiskLevels": [
        "clientAppTypes": [
        "applications": {
            "includeApplications": [
            "excludeApplications": [
            "includeUserActions": []
        "users": {
            "includeUsers": [
            "excludeUsers": [
            "includeGroups": [],
            "excludeGroups": [],
            "includeRoles": [
            "excludeRoles": [
        "platforms": {
            "includePlatforms": [
            "excludePlatforms": [
        "locations": {
            "includeLocations": [
            "excludeLocations": [
    "grantControls": {
        "operator": "OR",
        "builtInControls": [
        "customAuthenticationFactors": [],
        "termsOfUse": [
    "sessionControls": {
        "applicationEnforcedRestrictions": null,
        "persistentBrowser": null,
        "cloudAppSecurity": {
            "cloudAppSecurityType": "blockDownloads",
            "isEnabled": true
        "signInFrequency": {
            "value": 4,
            "type": "hours",
            "isEnabled": true