Feb 12 2019
01:20 PM
- last edited on
Jan 14 2022
05:20 PM
by
TechCommunityAP
Feb 12 2019
01:20 PM
- last edited on
Jan 14 2022
05:20 PM
by
TechCommunityAP
Hello
We have OnPrem AD where our users accounts are i.e. Domain\ABC123 then, We got Azure AD, ADFS, and O365 where our users now use xxx@domain.com to connect and use SharePoint Online.
However, We now have a requirement in some custom solution in SharePoint Online to get the original On-Prem AD account value - How to do so? I mean, If the logged user is xxx@domain.com, How can I find out what is his original On-Prem AD account value e.g. Domain\xyz987
Is there a way to do so? Or, How can I sync that value into Azure AD or SharePoint Profile?
Feb 12 2019 01:25 PM
Feb 12 2019 01:56 PM
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 12 2019 10:54 PM
SolutionWhile 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-a...
Feb 12 2019 10:58 PM
Feb 12 2019 10:54 PM
SolutionWhile 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-a...