答案 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门户上找到该用户。
注意:目前,无法将用户添加到Azure门户上的本机应用程序。