How to import an AAD user in Orchestrator via API?
Issue Description: When trying to add an AAD user via API using the POST /odata/Users endpoint, the following error occurs,
- "{\"message\":\"[domain]\\username@domain.com does not exist.\",\"errorCode\":1002,\"traceId\":\"00-0548c4dc45a4c54ca338f5708bd60ab9-4de329e5b1302121-00\"}"
Resolution:
- In the body of the API call, delete the "Domain" parameter and its value and try again.
Note: The error occurs when creating an user for the first time. If an user has already logged in to Orchestrator at some point and got its entry created, then deleted after some time. the error does not occur and the user gets recreated.
The same steps can be used when using the "Orchestrator HTTP request" activity in Studio.