我的要求是通过Microsoft Graph API获取用户对象的OnPremisesDistinguishedName属性。
在做了一些广泛的研发之后,我观察到在https://social.technet.microsoft.com/Forums/lync/en-US/df2b1b2b-a7ca-4b34-9ddf-82ffd78fc96e/how-to-retrive-ou-details-in-scripts-that-are-synced-with-office-365-with-aadc?forum=onlineservicesexchange的博客文章中,同样可以通过powershell模块实现
Get-AzureADUser -SearchString <any string> | select -ExpandProperty ExtensionProperty)["onPremisesDistinguishedName"]
但是如何通过GraphAPI实现这一目标呢?有什么想法吗?