Remove an org user's membership
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organizations/{id}/deprovision-user/"
payload = { "email": "[email protected]" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://eu.app.clarifeye.ai/api/v1/organizations/{id}/deprovision-user/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/organizations/{id}/deprovision-user/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'{
"email": "[email protected]",
"deprovisioned": true
}{
"error": "User not found"
}User Provisioning
Remove an org user's membership
Removes the user’s membership in this organization. If the user has no remaining
memberships they are deactivated (blocking SSO login); otherwise their active
organization is re-pointed. Returns deprovisioned: false if no such user. The
API key must belong to the organization in the path.
POST
/
organizations
/
{id}
/
deprovision-user
/
Remove an org user's membership
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organizations/{id}/deprovision-user/"
payload = { "email": "[email protected]" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://eu.app.clarifeye.ai/api/v1/organizations/{id}/deprovision-user/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/organizations/{id}/deprovision-user/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'{
"email": "[email protected]",
"deprovisioned": true
}{
"error": "User not found"
}Authorizations
Use Authorization: Api-Key (org-scoped provisioning key)
Path Parameters
UUID of the organization (must match the API key's org)
Body
application/json