Skip to content
Access Policy

Remove emails from access policy

Remove emails from an access policy; optionally revoke active sessions in the same call.

DELETE /v1/org/{organizationId}/contexts/sign-in/{contextId}/policies/{accessPolicyId}/emails

Removes email addresses or patterns from an access policy and, by default, revokes any active sign-ins the departing emails have made through modules gated by this policy.

ParameterInTypeRequiredDescription
organizationIdPathstringYesOrganization ID.
contextIdPathstringYesSign-In Context ID.
accessPolicyIdPathstringYesAccess policy UUID.
x-auth-tokenHeaderstringYesContext API key.
emailsBodystring[]YesList of email addresses or patterns to remove. Entries that are not in the policy are ignored.
revokeUserEngagementBodybooleanWhen true (default), active sign-ins associated with the removed emails are revoked. Set false to leave existing sessions intact and only prevent future sign-ins. (default: true)

Request example

cURL
curl -X DELETE "$API_BASE_URL/v1/org/$ORG_ID/contexts/sign-in/$CTX_ID/policies/$POLICY_ID/emails" \
-H "x-auth-token: $NETGRAPH_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"emails": ["alice@acme.com"],
"revokeUserEngagement": true
}'
FieldTypeDescription
policyEmailsstring[]Emails still in the policy after the removal.
removedEmailsobject[]One entry per email that was actually removed, including how many active sign-ins (per module) were revoked.
removedEmails[].emailstringThe removed email.
removedEmails[].revokedLoginsForSelfProvisioningintegerSelf-Provisioning by Email sign-ins terminated.
removedEmails[].revokedLoginsForMeetingHostintegerMeeting Host sign-ins terminated.
removedEmails[].revokedWhitelistingintegerWhitelist-created sign-ins terminated (if the removed email was the whitelist creator).
removedEmails[].revokeLoginsforConferencesintegerReserved. Conference sessions are not revoked by removing access-policy emails, so this endpoint currently always returns 0 for this field.

Response example

200
{
"policyEmails": ["*@external.example.com", "bob@acme.com"],
"removedEmails": [
{
"email": "alice@acme.com",
"revokedLoginsForSelfProvisioning": 3,
"revokedLoginsForMeetingHost": 0,
"revokedWhitelisting": 0,
"revokeLoginsforConferences": 0
}
]
}

Next