user_id
as a path parameter to identify the user whose permission is to be revoked.organization_id
from which the user’s permission should be removed.curl --location -g --request DELETE 'https:///v2/api/user/0/permission' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"organization_id": 1
}'
{
"success": true,
"message": "UserOrganization deleted successfully.",
"data": {
"id": 230,
"organization": {
"id": 2,
"org_name": "Ejento",
"domain": "ejento.ai"
},
"permission": "User",
"created_by": "function-app@ejento.ai",
"created_on": "2025-03-13T17:12:02.630262Z",
"user": 191
}
}