如何查找 AD 组可以访问的企业应用程序列表

How to find list of enterprise applications which an AD group can access

有什么方法可以找到 AD 组可以访问的企业应用程序列表?

我在 Azure 门户中看到了让我看到这个的选项,但是没有可以列出这个的 AzCLI 或 Terraform 模块。

Picture for reference in the Azure Portal

在 PowerShell 中找到一个命令以供参考 - 如果可能,仍会等待任何替代方法。

Get-AzureADGroupAppRoleAssignment -ObjectId <objectId>。 ObjectID可以从Azure AD中的Group中找到,或者我们可以使用下面的方式获取数据:

$GroupId = Get-AzureADMSGroup -SearchString "<groupName>" | Select-Object Id -ExpandProperty Id
Get-AzureADGroupAppRoleAssignment -ObjectId $GroupId 

需要 Install-Module AzureADConnect-AzureAD 在 运行 之前执行。