You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,34 +32,70 @@ Your profile will appear in the **Profile settings** list. You can rearrange the
32
32
33
33
<TabItemlabel="API">
34
34
35
-
Send a `POST` request to the [Devices endpoint](/api/resources/zero_trust/subresources/devices/subresources/policies/subresources/custom/methods/create/):
"description": "Cloudflare'\''s basic device settings profile, recommended in the implementation documentation. For details, refer to https://developers.cloudflare.com/learning-paths/replace-vpn/configure-device-agent/device-profiles/",
Send a `POST` request to the [Devices API](/api/resources/zero_trust/subresources/devices/subresources/policies/subresources/custom/methods/create/):
36
+
37
+
<APIRequest
38
+
path="/accounts/{account_id}/devices/policy"
39
+
method="POST"
40
+
json={{
41
+
"allow_mode_switch": false,
42
+
"allow_updates": false,
43
+
"allowed_to_leave": false,
44
+
"auto_connect": 600,
45
+
"captive_portal": 180,
46
+
"description": "Example device profile recommended in the implementation documentation. For details, refer to https://developers.cloudflare.com/learning-paths/replace-vpn/configure-device-agent/device-profiles/",
47
+
"disable_auto_fallback": true,
48
+
"enabled": true,
49
+
"exclude_office_ips": false,
50
+
"match": "identity.email in {\"[email protected]\"} or any(identity.groups.name[*] in {\"developers\"\"admin\"}) and os.name == \"windows\"",
51
+
"name": "Example device profile",
52
+
"precedence": 101,
53
+
"service_mode_v2": {
54
+
"mode": "warp"
55
+
},
56
+
"support_url": "https://support.example.com",
57
+
"switch_locked": true
58
+
}}
59
+
/>
61
60
62
-
</TabItem> </Tabs>
61
+
</TabItem>
62
+
<TabItemlabel="Terraform (v5)">
63
+
64
+
1. Add the following permission to your [`cloudflare_api_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/api_token):
65
+
-`Zero Trust Write`
66
+
67
+
2. Create a new profile using the [`cloudflare_zero_trust_device_custom_profile`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zero_trust_device_custom_profile) resource:
description = "Example device profile recommended in the implementation documentation. For details, refer to https://developers.cloudflare.com/learning-paths/replace-vpn/configure-device-agent/device-profiles/"
| User email | Email address of a user <br /> `[email protected]`| Gateway with WARP |
100
-
| User group emails | Email address of an [IdP group](/cloudflare-one/policies/gateway/identity-selectors/#idp-groups-in-gateway) <br /> `[email protected]`| Gateway with WARP |
101
-
| User group IDs | ID of an [IdP group](/cloudflare-one/policies/gateway/identity-selectors/#idp-groups-in-gateway) <br /> `12jf495bhjd7893ml09o`| Gateway with WARP |
102
-
| User group names | Name of an [IdP group](/cloudflare-one/policies/gateway/identity-selectors/#idp-groups-in-gateway) <br /> `developers`| Gateway with WARP |
103
-
| Operating system | Operating system of the device <br /> `macOS`| Any mode |
104
-
| Operating system version |[OS version](/cloudflare-one/identity/devices/warp-client-checks/os-version/#determine-the-os-version) specified in Semver format <br /> `1.2.0`| Any mode |
105
-
| Managed network |[Network location](/cloudflare-one/connections/connect-devices/warp/configure-warp/managed-networks/) of the device | Any mode |
106
-
| SAML Attributes | Attribute name and value from a [SAML IdP](/cloudflare-one/policies/gateway/identity-selectors/#generic-saml-idp)| Gateway with WARP |
107
-
| Service Token |[Service token](/cloudflare-one/connections/connect-devices/warp/deployment/device-enrollment/#check-for-service-token) used to enroll the device | Any mode |
133
+
You can configure device profiles to match against the following selectors, or criteria. Identity-based selectors are only available if the user [enrolled the device](/cloudflare-one/connections/connect-devices/warp/deployment/manual-deployment/) by logging in to an identity provider (IdP).
Apply a device profile based on an [IdP group](/cloudflare-one/policies/gateway/identity-selectors/#idp-groups-in-gateway) email address of which the user is configured as a member in the IdP.
144
+
145
+
<Renderfile="gateway/selectors/user-group-email"params={{ UIname: "User group emails" }}/>
146
+
147
+
### User group IDs
148
+
149
+
Apply a device profile based on an [IdP group](/cloudflare-one/policies/gateway/identity-selectors/#idp-groups-in-gateway) ID of which the user is configured as a member in the IdP.
150
+
151
+
<Renderfile="gateway/selectors/user-group-ids"params={{ UIname: "User group IDs" }}/>
152
+
153
+
### User group names
154
+
155
+
Apply a device profile based on an [IdP group](/cloudflare-one/policies/gateway/identity-selectors/#idp-groups-in-gateway) name of which the user is configured as a member in the IdP.
156
+
157
+
<Renderfile="gateway/selectors/user-group-names"params={{ UIname: "User group names" }}/>
158
+
159
+
### Operating system
160
+
161
+
Apply a device profile based on the operating system of the device.
| Operating system |`os.name in {\"windows\" \"mac\"}`|
166
+
167
+
### Operating system version
168
+
169
+
Apply a device profile based on the [OS version](/cloudflare-one/identity/devices/warp-client-checks/os-version/#determine-the-os-version) of the device.
| Operating system version |`os.version == \"1.2.0\"`|
174
+
175
+
<Renderfile="warp/os-version-semver" />
176
+
177
+
### Managed network
178
+
179
+
Apply a device profile based on the [managed network](/cloudflare-one/connections/connect-devices/warp/configure-warp/managed-networks/) that the device is connected to.
Apply a device profile based on the [service token](/cloudflare-one/connections/connect-devices/warp/deployment/device-enrollment/#check-for-service-token) used to enroll the device.
Copy file name to clipboardExpand all lines: src/content/docs/cloudflare-one/identity/devices/warp-client-checks/os-version.mdx
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,9 @@ The OS Version device posture attribute checks whether the version of a device's
25
25
2. Scroll down to **WARP client checks** and select **Add new**.
26
26
3. Select **OS version**.
27
27
4. Configure the **Operating system**, **Operator**, and **Version** fields to specify the [OS version](#determine-the-os-version) you want devices to match.
28
-
:::note
29
28
30
-
The OS version must be specified as a valid [Semver](https://semver.org/). For example, if your device is running OS version `1.2`, you must enter `1.2.0`.
The OS version must be specified as a valid [Semver](https://semver.org/). For example, if your device is running OS version `1.2`, you must enter `1.2.0`.
1. Add the following permission to your [`cloudflare_api_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/api_token):
87
+
-`Zero Trust Write`
88
+
89
+
2. Configure default profile settings using the [`cloudflare_zero_trust_device_default_profile`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zero_trust_device_default_profile) resource:
3.[Global settings](/cloudflare-one/connections/connect-devices/warp/configure-warp/warp-settings/#global-settings) are not currently supported by the Terraform v5 provider (as of version 5.3.0). To turn on **Admin override code** and **Install CA to system certificate store**, use the dashboard or API.
0 commit comments