uid is missing in get user request from entra to scim2.0

vipin kumar Niranjan 0 Reputation points
2024-07-04T06:15:38.62+00:00

Hi Community,

I have noticed that sometimes, during user provisioning, the uid is missing from the get request GET /User/Id from entra to scimgateway (based on scim2.0). The issue is not consistent and happening sometimes.

I am confused about how Entra knows the uid and if it knows, how did it miss in the Get request url. just to verify whether the uid is coming from url, I have changed the ldap backend base url in scimgateway but I am still seeing old uid.

sample-

[with uid]
GET http://ldap3.devsre.smtpi.com/Users/uid%253Damsowtpriwibfly%2540niranjanvk0107gmail.onmicrosoft.com%252Cou%253DPeople%252Cdc%253Dchandru%252Cdc%253Dcom

[without uid]

https://ldap3.devsre.smtpi.com/Users/amsowtpriwibfly%2540niranjanvk0107gmail.onmicrosoft.com 
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,375 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 7,430 Reputation points
    2024-07-04T07:24:05.9966667+00:00

    Hello vipin kumar Niranjan,Thanks for your question.

    When a user is created in Microsoft Entra ID, a unique identifier is assigned to the user. This UID is typically the user's Object ID, which is a GUID.Query should be like:

    GET /Users?filter=userName eq "Test_User_00aa00aa-bb11-cc22-dd33-44ee44ee44ee"
    
    

    See:https://video2.skills-academy.com/en-us/entra/identity/app-provisioning/use-scim-to-provision-users-and-groups#request-2These queries depend on the mapped attributes on Entra and the SCIM app.

    I will recommend you ensure that that the SCIM gateway is correctly configured to include the UID in the URL. You can also view provisioning and audit logs to see where and which data is being sent.

    You can also change the base URL to see if it still has that old UID, in that case it is a caching issue you need to fix

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola