use K2 API to sync sharepoint permissions with K2

  • 9 October 2017
  • 1 reply
  • 1 view

Badge +1

We are in process of automation of adding users to SharePoint groups. And we have achieved that functionality but we still have to manually go to the K2 Application and sync permissions from there. We have multiple site collections, so it a tedious task to go to each site collection and sync permissions manually. So we were looking for some APIs which we can use to write code so that we can sync permissions by simply calling that code or else do we have any other alternative.


1 reply

Badge +9

Hmmm... how are you syncing the permissions from SharePoint? Are you using the "Synchronize Groups" function? If that's the case then you could use the following smartobject method:


 


System > SharePoint 2013 Integration > SharePoint Integration Helper Methods (SmartObject) > Refresh SharePoint Group Identity Cache (Method)


 


If you want something to code, you could also execute the above mentioned SmartObject with the K2 API and you should achieve the same thing.


 


 

Reply