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.
Well, I just install AD powershell on one of the domain server and wrote a script to pull the Sam name