locked
sAMAccountName attribute in Azure AD RRS feed

  • Question


  • Almost all the enterprise applications use sAMAccoutName attribute as a username to applications that's using AD/SAML for authentication.

    So, wondering if there an attribute that stores username of the account in Azure AD?

    Thanks

    Tuesday, June 19, 2018 3:13 PM

All replies

  • It's mapped to "accountName" in the Metaverse and then to "onPremisesSamAccountName" in Azure AD.
    Tuesday, June 19, 2018 5:51 PM
  • Just checking in if you have had a chance to see the previous response. If that answers your query, do click “Mark as Answer” and Up-Vote for the same. If you have any further query, then do let us know.

    Saturday, June 23, 2018 11:25 AM
  • And how you can query this information in Azure AD with Powershell?

    Like "What OnPremisesSamAccountName has user test.user@contoso.com" ?

    Tuesday, August 14, 2018 5:57 AM
  • It's exposed in the Graph, here's an example query:

    https://graph.microsoft.com/beta/users?$select=userPrincipalName,onPremisesSamAccountName

    The Azure AD PowerShell module does not currently expose it.

    • Proposed as answer by Ewoki Wednesday, August 15, 2018 11:00 AM
    Tuesday, August 14, 2018 6:42 AM
  • @Ewoki : Just checking in if you have had a chance to see the previous response. If that answers your query, do click “Mark as Answer” and Up-Vote for the same. If you have any further query, then do let us know.
    Friday, August 17, 2018 9:20 AM
  • "The Azure AD PowerShell module does not currently expose it."

    The Get-AzureADUser command needs to expose it.

    Monday, November 18, 2019 6:54 PM