Skip to main content

I have a SharePoint Library that I am using for document storage in my K2 Cloud project. One of the things I want to do is have different permissions on each sub folder and have K2 set these permissions.

I can do this for individual documents using the following SmartObject methods:

  1. “Stop Inheriting Permissions on Document By ID”
  2. then “Add User or Group Permissions to Document By ID”

There doesn’t seem to be the equivelent function for a folder or a way to use the above function on a folder because I can’t get an ID for the folder itself.

There are plenty of SmartObject functions that can alter permissions on the SharePoint object but all require a Document ID which I don’t seem to be able to get for the folder itself. The functionality exists in SharePoint to set these permissions so I’m worried that this has simply been omitted from the API?

Does anyone know of a method to do this?

Hi John

I do not believe that is surfaced as it is today, in the past I have used the SP Rest Services to accomplish this.

https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest


Reply