Remove a User from your Organization

The following examples show how to remove a user from membership in your organization, and from membership in a Trusted Domain.

Remove user from membership in your organization

========================= REQUEST ==========================
POST https://usermanagement.adobe.io/v2/usermanagement/action/{myOrgId}
-------------------------- body ----------------------------
[
  {
    "user" : "john.doe@myDomain",
    "do" : [
      {
        "removeFromOrg" : {}
      }
    ]
  }
]
------------------------- headers --------------------------
Accept: application/json
Content-Type: application/json
x-api-key: {myApiKey}
Authorization: Bearer {myAccessToken}

Remove user from membership in your organization and in a Trusted Domain

========================= REQUEST ==========================
POST https://usermanagement.adobe.io/v2/usermanagement/action/{myOrgId}
-------------------------- body ----------------------------

[ 
   {
      "user" : "john.doe@myDomain",
      "do" : [
         { "removeFromOrg" : 
            { "removedDomain" : "myDomain" }
         }
      ]
   }
]

------------------------- headers --------------------------
Accept: application/json
Content-Type: application/json
x-api-key: {myApiKey}
Authorization: Bearer {myAccessToken}

Remove user from membership in a Trusted Domain

========================= REQUEST ==========================
POST https://usermanagement.adobe.io/v2/usermanagement/action/{myOrgId}
-------------------------- body ----------------------------

[
   {
      "user" : "john.doe@myDomain",
      "do" : [ { "removeFromDomain" : 
                  { "removedDomain" : "myDomain" }
                }
      ]
   }
]

------------------------- headers --------------------------
Accept: application/json
Content-Type: application/json
x-api-key: {myApiKey}
Authorization: Bearer {myAccessToken}