0
votes

Looks like it's not possible to set custom permission on SharePoint list item using Sandbox solution, but thought to ask the question anyway.

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

1

1 Answers

0
votes

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. 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).