Is it possible to retrieve SamAccountName in Azure ADDS?
For example, John join company A as john@a.com, there is a child domain called A1, another John joins in as John@a1.com 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.