Authentication Policies
Create an Authentication Policy
Create an authentication policy.
Sample Request
curl -X POST https://console.jumpcloud.com/api/v2/authn/policies \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'x-api-key: {API_KEY}' \
-d '{
"name": "Sample Policy",
"disabled": false,
"effect": {
"action": "allow"
},
"targets": {
"users": {
"inclusions": ["ALL"]
},
"userGroups": {
"exclusions": [{USER_GROUP_ID}]
},
"resources": [ {"type": "user_portal" } ]
},
"conditions":{
"ipAddressIn": [{IP_LIST_ID}]
}
}'
post/authn/policies
Request
- Base URLhttps://console.jumpcloud.com/api/v2
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
x-org-idstring
Organization identifier that can be obtained from console settings.
Request body
Response
Created
Changes
No recorded changes to this operation across all 1 revision of this API.