Azure Active Directory - 导航项目,例如'用户和组'当我进入申请页面

时间:2018-02-05 09:58:36

标签: azure active-directory azure-active-directory

我在Azure AD中创建了一个本机应用程序,但我无法向其添加用户,因为当我单击该应用程序时,某些导航项目(包括用户和组)会在一瞬间出现,然后消失。如何将用户添加到应用程序?

Screenshot of AD menu Screenshot of AD menu

1 个答案:

答案 0 :(得分:0)

您可以使用Azure Power Shell执行此操作。

$appId = "your native app application id"
$user = Get-AzureADUser -searchstring "<Your user's UPN>"
$servicePrincipal = Get-AzureADServicePrincipal -Filter "appId eq '$appId'"
New-AzureADUserAppRoleAssignment -ObjectId $user.ObjectId -PrincipalId $user.ObjectId -ResourceId $servicePrincipal.ObjectId -Id ([Guid]::Empty)

然后,您可以在Azure门户上找到该用户。

enter image description here

注意:目前,无法将用户添加到Azure门户上的本机应用程序。