The following error shows up when registering the Okta AD agent:
Unexpected status code 500 InternalServerError for URL https://<subdomain>.okta.com/api/1/internal/app/activedirectory/
- Directories
- AD Agent
- LDAP Agent
Agent registration is blocked when there are duplicate AD / LDAP app instances.
The duplicate inactive AD instance must be removed.
- On the Directory Integrations page, select the directory in the Inactive list.
- Select the dropdown next to Inactive at the top of the window and click Delete.
To verify the AD instance via the API:
GET /api/v1/apps/<duplicate AD instance Id>
To remove the duplicate AD instance ID via the API:
DELETE /api/v1/apps/<duplicate AD instance Id>