Remove user from organization
const url = 'https://localhost:8080/api/v1/organizations/example/members/example';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://localhost:8080/api/v1/organizations/example/members/example \ --header 'Authorization: <Authorization>'Remove a user from an organization and best-effort remove them from the bound IDP organization
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Organization ID or UUID (bare or urn:uuid)
User UUID (bare or urn:uuid) or did:key
Responses
Section titled “ Responses ”User removed successfully
Confirmation that a user was removed from an organization, naming who was removed
object
Example
{ "message": "User removed from organization successfully", "organizationId": 123, "userId": "550e8400-e29b-41d4-a716-446655440000"}Invalid request
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Forbidden - requires Organization Owner role
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Organization, user, or membership not found
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}