/api/apps/{app_id}/service-account/organization-membershipAuthenticatedRemove an app's service account from its organization
Takes the client application's service account out of the organization that owns the app: organization membership checks (including resource servers' role lookups) no longer find it. Access tokens already issued to it stay valid until they expire. Requires management access; hardcoded apps cannot be configured.
delete_api_apps_app_id_service_account_organization_membershipClient applicationsAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
Path parameters
| Name | Type | Description |
|---|---|---|
| app_id* | string | Client application id |
Responses
| Property | Type | Description |
|---|---|---|
| success* | true | |
| message* | string | |
| organization_membership* | AppServiceAccountOrganizationMembership | |
| available* | boolean | Whether the app is owned by an organization. Only the service account of an organization-owned app can be a member of an organization (its owner) |
| organization_id* | string | null | null | The organization that owns the app, which the service account joins; null when the app is not organization-owned |
| role* | "member" | "owner" | null | null | The service account's role in that organization, as reported to resource servers' organization membership checks; null when it is not a member |
Example request
curl -X DELETE 'https://auth.schemavaults.com/api/apps/<app_id>/service-account/organization-membership' \
-b 'refresh_token_<auth_server_app_id>=<value>'