Overview
This article explains why the following error occurs when attempting to update an application via the Auth0 Dashboard or the Management API, if that application, though not currently associated with an organization, was previously configured with an that has been deleted:
Error! No organization found by that organization id.
Applies To
- Application Configuration
Cause
This error likely occurs because the deleted Organization was set as a default Organization for the client. The application cannot be updated because the system attempts to patch it with a non-existent default organization during each update attempt. The problematic object in the client body is default_organization
, which was likely set via the Management API during client creation or a previous update.
Solution
To resolve this issue, remove the default_organization
setting from the client by making a PATCH request to the /api/v2/clients/{id}
endpoint of the Management API. The following steps use the Management API explorer interface:
- Navigate to the
GET /api/v2/clients/{id}
endpoint in the Management API explorer: Get Clients by ID. This step retrieves the client’s body for modification. - Authorize calls to the Management API. Select the Set API Token button in the upper right corner of the Management API explorer. Obtain the token by navigating in the Auth0 Dashboard to Applications > APIs > Auth0 Management API > API Explorer tab. Copy the token displayed and paste it into the API Token field in the Management API explorer.
- In the
GET /api/v2/clients/{id}
endpoint in the Management API explorer, enter theclient_id
of the application in the path:id field. - Scroll down and select the Test Endpoint button.
- Copy the entire response body. This is the client’s current configuration.
- Navigate to the
PATCH /api/v2/clients/{id}
endpoint in the Management API explorer: Patch Clients by ID. - Paste the copied response body into the body field of the PATCH request.
- Locate the
default_organization
object in the JSON body, which may look similar to this:
"default_organization": {
"organization_id": "string",
"flows": [
"client_credentials"
]
}
- Change the value of the
default_organization
object tonull
:
"default_organization": null
- Select the Test Endpoint button. An error may appear stating that certain values, such as
client_id
, cannot be updated. - Remove the parameters enumerated in the error message from the request body.
- Select the Test Endpoint button again.
Successfully completing these steps removes the default_organization
from the client’s body, allowing the application to be updated normally.