简体   繁体   English

使用沙盒解决方案对共享点列表项设置自定义权限

[英]Set custom permission on sharepoint list item using sandbox solution

Looks like it's not possible to set custom permission on SharePoint list item using Sandbox solution, but thought to ask the question anyway. 似乎无法使用沙盒解决方案在SharePoint列表项上设置自定义权限,但还是想问这个问题。

I would like like to accomplish something like this in Sandbox solution: List Item multiple users permissions programatically (sharepoint) 我想在沙盒解决方案中完成以下操作:以编程方式列出项目多用户权限(共享点)

Any help/suggestions will be highly appreciated. 任何帮助/建议将不胜感激。

Thanks, Prem 谢谢,Prem

Basically it should be possible. 基本上应该有可能。 The only thing unavailable for you would be RunWithElevatedPrivileges , so you would have to check, if current user has enough permissions, to run BreakRoleInheritance and use for example RoleAssignments . 唯一不可用的是RunWithElevatedPrivileges ,因此,如果当前用户具有足够的权限,则必须检查运行BreakRoleInheritance并使用例如RoleAssignments Also, if you're thinking only about Sandbox solution (not SharePoint Online), you can move some of the functionality (like RunWithElevatedPrivileges to Sandbox Proxy in separate farm solution (these proxy are unavailable in Online version). 此外,如果仅考虑沙盒解决方案(而不是SharePoint Online),则可以将某些功能(例如RunWithElevatedPrivileges移到单独的服务器场解决方案中的沙盒代理中(这些代理在在线版本中不可用)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM