Forum Discussion
How to get the original On-Prem AD account into Azure AD & SharePoint Online?
- Feb 13, 2019
While the SamAccountName is synced to Azure AD, it's NOT exposed in any of the admin centers or other tools. You can only consume it via the Graph: https://social.msdn.microsoft.com/Forums/en-US/e400c1c8-c803-4af1-8a90-0a1ff246f844/samaccountname-attribute-in-azure-ad?forum=WindowsAzureAD
- Mary20_19Feb 12, 2019Copper Contributor
Hi Adam,
My On-Prem AD account is actually Domain\MaLa23264 and it work perfectly fine with our internal onPrem systems including our old SharePoint 2013 on-Prem farm.
In SharePoint Online, I use the UPN (Mary.Larson@Domain.com), So, They are not the same.
In specific SharePoint solution we are building, I really need to get the original On-Prem AD account which is Domain\MaLa23264 ... How?
- Feb 13, 2019Ok! AFAIK this must be done programmatically! Powershell can be used as well but I’m not sure that will suit your needs
- VasilMichevFeb 13, 2019MVP
While the SamAccountName is synced to Azure AD, it's NOT exposed in any of the admin centers or other tools. You can only consume it via the Graph: https://social.msdn.microsoft.com/Forums/en-US/e400c1c8-c803-4af1-8a90-0a1ff246f844/samaccountname-attribute-in-azure-ad?forum=WindowsAzureAD