SamAccountName in Azure ADDS

475 Views Asked by At

Is it possible to retrieve SamAccountName in Azure ADDS?

For example, John join company A as [email protected], there is a child domain called A1, another John joins in as [email protected] the UPN works fine, but SamAccountName will be different as per screenshot in Azure ADDS.

in VS, there is only UserID, which is the SamAccountName, so I need to get this SamAccountName automatically.

enter image description here

enter image description here

1

There are 1 best solutions below

1
On

Well, I just install AD powershell on one of the domain server and wrote a script to pull the Sam name