以下步骤可以取消阻止桌面/移动应用程序的团队选项卡方案。
手动步骤
步骤 1. 确保您已在租户管理站点上的新 API 权限管理页面中批准请求。这在幕后创建了一个客户秘密。
步骤 2. 转到 ->https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview
步骤 3. 单击 SharePoint Online 客户端可扩展性 Web 应用程序主体
步骤 4. 单击左侧菜单上的清单
步骤 5. 从 oAuth2Permission 数组中复制 id
"oauth2Permissions": [
{
"adminConsentDescription": "Allow the application to access SharePoint Online Client Extensibility Web Application Principal on behalf of the signed-in user.",
"adminConsentDisplayName": "Access SharePoint Online Client Extensibility Web Application Principal",
"id": "2143704b-186b-4210-b555-d03aa61823cf",
"isEnabled": true,
"lang": null,
"origin": "Application",
"type": "User",
"userConsentDescription": "Allow the application to access SharePoint Online Client Extensibility Web Application Principal on your behalf.",
"userConsentDisplayName": "Access SharePoint Online Client Extensibility Web Application Principal",
"value": "user_impersonation"
}
],
步骤 6. 将“preAuthorizedApplications”条目替换为以下 json
"preAuthorizedApplications": [
{
"appId": "00000003-0000-0ff1-ce00-000000000000",
"permissionIds": [
"ID OF THE USER_IMPERSONATION Scope"
]
}
],
第 7 步。点击保存。