高信任应用程序 - 权限请求QueryAsUserIgnoreAppPrincipal [英] High Trust App - Permission Request QueryAsUserIgnoreAppPrincipal

查看:118
本文介绍了高信任应用程序 - 权限请求QueryAsUserIgnoreAppPrincipal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在为SharePoint Server 2013/2016开发一个高信任加载项,加载项使用sharePoint搜索。作为App Registration的一部分,我转到AppInv.aspx页面设置加载项的权限。


  < AppPermissionRequests>

  &NBSP; < AppPermissionRequest Scope =" http:// sharepoint / search"右= QUOT; QueryAsUserIgnoreAppPrincipal" />

  &NBSP; < AppPermissionRequest Scope =" http:// sharepoint / content / sitecollection"右= QUOT; FullControl" />

  < / AppPermissionRequests>


当我在AppInv.aspx上尝试上述权限时,我能够成功注册我的农场帐户。但是,在客户环境中,搜索服务应用程序位于不同的服务器场中并连接到此服务器场(代理服务器)。在这种情况下,
当我尝试使用appinv.aspx注册权限时,系统会提示"租户管理员必须批准此应用"消息,它不允许我应用权限。


用户是SharePoint和搜索服务器场中的服务器场管理员,用户也是应用程序目录中的网站集管理员现场。不确定,还需要什么其他权限。


如果我删除PermissionRequest进行搜索,则提示消失。任何帮助将不胜感激。


谢谢,

Jag





问候,Jagan

解决方案

嗨Jagan,


您是否成功配置了两个SharePoint Server 2013服务器场之间的搜索信任?


https://technet.microsoft.com/en-us/library/ dn133749.aspx


您可能需要批准APP请求。希望以下文章能为您提供帮助。


https://sharepoint.stackexchange.com/questions/227503/approving-app-by-tenant-admin-does-nothing-and-invalid -id-for-a-sharepoint-app / 227522



< a href ="https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/development-experience-tenant-apponly-permissions-in-sharepoint-online"> https://docs.microsoft .com / zh-CN / sharepoint / dev / solution-guidance / development-experience-tenant-apponly-permissions-in-sharepoint-online


祝你好运,


Lee Liu


Hi,

I am developing a high Trust Add-In for SharePoint Server 2013/2016 and the add-in utilises sharePoint search. As part of the App Registration, I go to the AppInv.aspx page to set the permission for the Add-In.

  <AppPermissionRequests>
    <AppPermissionRequest Scope="http://sharepoint/search" Right="QueryAsUserIgnoreAppPrincipal" />
    <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
  </AppPermissionRequests>

When I try the above permission on the AppInv.aspx, I am able to successfully register with my farm account. But, in the customer environment, the search service application is in a different farm and is connected to this farm (Proxy). In this situation, when I try to register the permission using appinv.aspx, I am prompted for "Tenant Admin has to approve this app" message and it doesn't let me apply the permission.

The user is a farm admin in both the SharePoint and the Search farm, the user is also a site collection admin in the App Catalog site. Not sure, what other permission is needed.

If I remove the PermissionRequest for search, the prompt is gone. Any help would be much appreciated.

Thanks,
Jag


Regards, Jagan

解决方案

Hi Jagan,

Did you configure trust for search between two SharePoint Server 2013 farms successfully?

https://technet.microsoft.com/en-us/library/dn133749.aspx

You may need to approve the APP request. Hope the articles below will help you.

https://sharepoint.stackexchange.com/questions/227503/approving-app-by-tenant-admin-does-nothing-and-invalid-id-for-a-sharepoint-app/227522

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/development-experience-tenant-apponly-permissions-in-sharepoint-online

Best regards,

Lee Liu


这篇关于高信任应用程序 - 权限请求QueryAsUserIgnoreAppPrincipal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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