10

For my SharePoint Hosted App, I set the jslink property of the field for customized rendering (JSOM set_jsLink). This used to work without having FullControl permission on web earlier. However, now this doesn't work with Manage permission level.

The Field gets updated and then executeQueryAsync success callback is hit but yet jslink value is not changed. And App store doesn't accept an App requiring full control permissions!

Is this a change from Microsoft's side? Any relevant link that explains what is the recommended strategy now? Thanks.

8
  • Exactly the same problem... Did you solve it? Commented Nov 3, 2015 at 18:39
  • 1
    Not yet. We wrote to a PM in Microsoft Office Dev team recently and described the issue. I will post here if we get any response.
    – Prakash
    Commented Nov 4, 2015 at 7:50
  • Hi! Any updates here? Commented Nov 27, 2015 at 10:43
  • There is no response so far. I think the problem here is that JSLink script code eventually runs in context of user. So an App with just manage permissions is able to make its code run with potentially higher privileges of the user and thus Microsoft has changed it to require full control permissions. Don't know why there is no clarity around this with respect to App store not allowing Full Control Apps.
    – Prakash
    Commented Dec 1, 2015 at 17:45
  • scnsoft.com/blog/… I think this can help
    – codemirror
    Commented Jul 27, 2017 at 13:30

1 Answer 1

1

I suppose you are trying to set the JSLink for a host web field. If this is the case, you now need Full Control permissions, which is not allowed for an Add-In published in the store. The new SharePoint Framework model will allow full permissions on the DOM because it will no longer be an iframe on an isolated domain.

Until SharePoint Framework is released, I suggest you go the one page app approach and use something like React JS or Angular JS to build the whole app. Steep learning curve, but definitely worth it. If you only need to customize a field and use all other SharePoint views and forms, then publishing your customizations as an AddIn Package and installing that in the App Catalog will allow you to get Full Control permissions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.