如何获取分配给Azure企业应用程序的所有用户的列表?
我查看了Azure文档,但无法获取任何API来解决此问题。
答案 0 :(得分:1)
您可以像这样通过Powershell获取Azure企业应用程序的所有用户帐户:
$app_name = "[app display name]"
$sp = Get-AzureADServicePrincipal -Filter "displayName eq '$app_name'"
$assignments = Get-AzureADServiceAppRoleAssignment -ObjectId $sp.ObjectId -All $true
$assignments # this will show all the users associated to the principal
它会像这样:
希望这会对您有所帮助。还有其他问题,请给我消息。