How to add SamAccountName as a source attribute in provisioning

Jacob White 31 Reputation points

I can see according to this documentation here: "some attributes (such as SAMAccountName) that are synchronized by default might not be exposed using the Microsoft Graph API. In these cases, you can use the Azure AD Connect directory extension feature to synchronize the attribute to Azure AD. That way, the attribute will be visible to the Microsoft Graph API and the Azure AD provisioning service."

But would anyone know the steps to be taken to implement this? I can't seem to find it

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,180 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Vasil Michev 98,516 Reputation points MVP

    SamAccountName gets synced as onPremisesSamAccountName, so just use that.

    0 comments No comments

  2. AmanpreetSingh-MSFT 56,466 Reputation points

    Hello @Jacob White ,

    I suspect that statement is for older version of graph api, which is However, with the newer version of graph api i.e., it is exposed as onPremisesSamAccountName and can be found by using either of the below calls via graph explorer:


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.