Organizations API

Remove User from the Organization by Username

POST v2/organizations/:guid/users/remove

Request

Route

POST v2/organizations/946b8b2b-6b51-456d-b631-d6452d305efe/users/remove

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values
username The user's name
origin The UAA origin
  • ldap
  • uaa
{
  "username": "[email protected]",
  "origin": "ldap"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MCIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTV9.wIRNWudoldoPQMorVgg1UiwgvfHmLsF5UWERVX8EIho
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/946b8b2b-6b51-456d-b631-d6452d305efe/users/remove" -d '{
      "username": "[email protected]",
      "origin": "ldap"
    }' -X POST \
      -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MCIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTV9.wIRNWudoldoPQMorVgg1UiwgvfHmLsF5UWERVX8EIho" \
      -H "Host: example.org" \
      -H "Content-Type: application/json" \
      -H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 766aac0a-90d6-49be-bc7a-393a5493e032
X-Content-Type-Options: nosniff