尝试将应用程序添加到SharePoint 2013时出错:对不起,只有租户管理员可以添加或授予此应用程序的访问权限 [英] Error when trying to add App to SharePoint 2013: Sorry, only tenant administrators can add or give access to this app

查看:57
本文介绍了尝试将应用程序添加到SharePoint 2013时出错:对不起,只有租户管理员可以添加或授予此应用程序的访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为应用了2013年8月CU的SharePoint 2013创建提供商托管应用时,我收到错误"抱歉,只有租户管理员可以添加或授予此应用的访问权限"当部署到内部部署服务器时,如果应用程序请求用户配置文件
读取权限。这在运行2013年3月PU和2013年6月CU时有效。当"信任"按钮被禁用时,这会在请求用户配置文件读取权限时有效阻止应用程序安装。

When I create a provider hosted app for SharePoint 2013 with the August 2013 CU applied I receive the error "Sorry, only tenant administrators can add or give access to this app" when deploying to an on-premise server if the app requests User Profile Read permissions. This worked when running the March 2013 PU and the June 2013 CU. This effectively blocks the app installation when User Profile read permissions are requested as the Trust It button is disabled.

任何人都可以验证这是否是2013年8月CU for SharePoint 2013和/的错误或提供此问题的任何解决方法?

Can anyone verify whether this is a bug with the August 2013 CU for SharePoint 2013 and/or provide any workaround for this issue?

软件:


  • 使用Microsoft Office Developer Tools的Visual Studio 2012
  • SharePoint 2013年8月2013 CU(15.0.4535.1000)本地内容

重现步骤:


  • 打开Visual Studio 2013
  • 选择文件>新项目
  • 选择"App for SharePoint 2013"​​并单击"下一步"
  • 选择提供商托管,然后单击"下一步"并完成
  • 打开AppManifest.xml文件
  • 在权限选项卡中,选择范围:用户配置文件(社交),权限:读取
  • 单击开始以部署项目
  • 当应用程序权限页面打开消息"抱歉,只显示租户管理员可以添加或授予对此应用的访问权限",并且"信任"按钮被禁用。这可以防止从远程Web
    调用用户配置文件服务和对应用程序Web的任何其他调用。即使安装应用程序的用户是服务器场管理员,对用户配置文件服务应用程序具有完全控制权并且是网站集管理员,也会发生这种情况。它适用于之前的CU(3月PU,6月CU)。

请求搜索服务的权限时发生类似的错误。

A similar error occurs when requesting permissions to the Search service.

推荐答案

向MS确认这是2013年8月CU的错误。

Confirmed with MS that this is a bug in August 2013 CU.

解决方法直到他们解决问题:

Workaround until they fix the problem:

导航到C:\Program Files \Common Files \ microsrosoft shared\Web Server Extensions\15\CONFIG。在那里你会看到一堆AppPermissionProvider。*。xml文件。根据您的安装(Foundation,Server,PS),您可能会有不同的文件。
打开AppPermissionProvider.Search.xml,您将看到以下设置:

Navigate to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\CONFIG. There you will see a bunch of AppPermissionProvider.*.xml files. Depending on your installation (Foundation, Server, PS) you will probably have different files. Open AppPermissionProvider.Search.xml and you will see the following settings:

< Alias < span style ="color:#0433ff; font-family:Consolas; font-size:10px; line-height:normal">  名称 = " 搜索 "   = " http:// sharepoint / search "   RequiredRight = " TenantAdmin "   />

<Alias Name="Search" Value="http://sharepoint/search" RequiredRight="TenantAdmin" />

将TenantAdmin替换为SiteCollectionAdmin(TenantAdmin的最近权限)。我还要确保用于部署的帐户是一个服务器场管理员模拟TenantAdmin权限。保存文件并退回IIS。在每个SP服务器上重复。
部署应用程序,你应该能够再次使用租户管理员权限。

Replace TenantAdmin with SiteCollectionAdmin (Closest permission to TenantAdmin). I would also ensure the account used for deployment be a farm administrator to simulate the TenantAdmin permission. Save the files and bounce IIS. Repeat on each SP Server. Deploy your application and you should be able to use the tenant admin permissions again.

搜索不是唯一受此更新破坏的应用程序权限。只需打开所有AppPermissionProvider。*。xml文件,任何具有TenantAdmin权限的文件都会受到影响。

Search is not the only app permission that is mangled with this update. Just open all of the AppPermissionProvider.*.xml files and anything with the TenantAdmin permission is affected.

我假设下一个CU将解决此问题。

I assume with the next CU this problem will be addressed.

您可能应该在安装未来更新之前撤消。

You should probably undo prior to installing future updates.

祝你好运,

Ashkan


这篇关于尝试将应用程序添加到SharePoint 2013时出错:对不起,只有租户管理员可以添加或授予此应用程序的访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆