How to delete a user from a Standalone Orchestrator using API?
Issue Description: The delete user API endpoint will only delete the user from the Orchestrator not from identity.
Resolution:
- Use platform management API to delete the same user from Identity.
- Ref docs: Orchestrator - User Management
- For this, provide the external application from which the access token are generated with Platform management access and respective scopes to delete the user
- After getting tokens using the above external application, use the below API endpoint to get info of users available in Identity and delete based on user ID.
- List of Users available in Identity along with their id's: GET
- {orch_url}/identity/api/UserPartition/users/{partition_id}
- Get patiotion_id from the identity management portal by using developer tools in a browser like below. Note : Pass the bearer token to the above API obtained from 1st step.
- Post having the user details along with the ID then you can use the below API to delete the same user from the identity.
- Delete user : DELETE: {Orch_url}/identity/api/User/{user_id}
- Note: Pass the token obtained from 1st step for authentication purposes.