Policy Scope Update APIs
Update a policy user scope, define inclusion/exclusion rule for users using user emails. Only supports gDrive policies, separates internal or external users based on google domains registered in Nightfall.
The UUID of the policy to update
Successful response (processed immediately)
Invalid request parameters
Authentication failure
Operation prohibited on the policy
Policy not found
Rate Limit Exceeded or Daily Quota Exceeded
Internal Nightfall Error
POST /policy/v1/{policyID}/scope/users HTTP/1.1
Host: api.nightfall.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"add": {
"include": [
"[email protected]"
],
"exclude": [
"[email protected]"
]
},
"delete": {
"include": [
"[email protected]"
],
"exclude": [
"[email protected]"
]
}
}{
"includedUsers": [
"text"
],
"excludedUsers": [
"text"
]
}Update a policy domain scope, define inclusion/exclusion rule for domains. Only supports gDrive policies.
The UUID of the policy to update
Successful response (processed immediately)
Invalid request parameters
Authentication failure
Operation prohibited on the policy
Policy not found
Rate Limit Exceeded or Daily Quota Exceeded
Internal Nightfall Error
POST /policy/v1/{policyID}/scope/domains HTTP/1.1
Host: api.nightfall.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 96
{
"add": {
"include": [
"text"
],
"exclude": [
"text"
]
},
"delete": {
"include": [
"text"
],
"exclude": [
"text"
]
}
}{
"includedDomains": [
"text"
],
"excludedDomains": [
"text"
]
}Last updated
Was this helpful?