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": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', '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: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'{
"email": "[email protected]",
"deprovisioned": true
}{
"error": "User not found"
}{
"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. A service account cannot be
deprovisioned (400): disable it on the Service accounts page instead.
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": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', '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: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'{
"email": "[email protected]",
"deprovisioned": true
}{
"error": "User not found"
}{
"error": "User not found"
}Authorizations
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..