Hi,
When I provision a user via SCIM, I see there is first a GET request to search for the user via userName, e.g.
GET /scim/v2/Users {"filter":"userName eq "abc@xyz .onmicrosoft.com"", "count":100, "startIndex":1, "page":1}
If I return 200 with zero results, I can see the POST request and the user gets provisioned successfully.
However, on all subsequent updates/checks to the user, the userName in the query appears to be a randomly generated value (it's a different value for the same user every time), e.g.:
GET /scim/v2/Users {"filter":"userName eq "80f18da2-686d-445c-9c47-0cdeaf0c654b"", "count":100, "startIndex":1, "page":1}
This is always followed up with another GET request to the correct user id route (GET /scim/v2/Users/123... etc). So while flow is working, I do not understand how these userName values are generated and why the unnecessary step. How can I ensure that the userPrincipalName value is used in the query?