CAPolicies
Block

Block access for unknown or unsupported device platform

Block access

Policy conditions

Users
All users
Apps
All cloud apps
Platforms
Excludes: android, iOS, windows, macOS, linux, windowsPhone

JSON template

{
  "sessionControls": null,
  "conditions": {
    "userRiskLevels": [],
    "signInRiskLevels": [],
    "clientAppTypes": [
      "all"
    ],
    "servicePrincipalRiskLevels": [],
    "agentIdRiskLevels": null,
    "insiderRiskLevels": null,
    "purviewDataLossPreventionRules": null,
    "agentSessionRiskLevels": null,
    "clients": null,
    "locations": null,
    "times": null,
    "deviceStates": null,
    "devices": null,
    "clientApplications": null,
    "authenticationFlows": null,
    "federatedTokens": null,
    "agents": null,
    "agentContext": null,
    "applications": {
      "includeApplications": [
        "All"
      ],
      "excludeApplications": [],
      "includeUserActions": [],
      "includeAuthenticationContextClassReferences": [],
      "applicationFilter": null,
      "networkAccess": null,
      "globalSecureAccess": null
    },
    "users": {
      "includeUsers": [
        "All"
      ],
      "excludeUsers": [],
      "includeGroups": [],
      "excludeGroups": [],
      "includeRoles": [],
      "excludeRoles": [],
      "includeGuestsOrExternalUsers": null,
      "excludeGuestsOrExternalUsers": null
    },
    "platforms": {
      "includePlatforms": [
        "all"
      ],
      "excludePlatforms": [
        "android",
        "iOS",
        "windows",
        "macOS",
        "linux",
        "windowsPhone"
      ]
    }
  },
  "grantControls": {
    "operator": "OR",
    "builtInControls": [
      "block"
    ],
    "customAuthenticationFactors": [],
    "termsOfUse": [],
    "authenticationStrength@odata.context": "https://graph.microsoft.com/beta/$metadata#conditionalAccess/templates('4e39a309-931e-4cb1-a371-e2beea168002')/details/grantControls/authenticationStrength/$entity",
    "authenticationStrength": null
  },
  "displayName": "Block access for unknown or unsupported device platform",
  "Tag": "Entra Template"
}