Obtaining the SharePoint User ID using CSOM Service Instance


Badge +10

I'm still running K2 blackpearl 4.6.6 (cannot upgrade yet) and I'm using the CSOM Service Instance to connect to a SharePoint online site.

Everything is working, but when I try to update/create an item that contains a person field, the SmartObject expects the SharePoint User ID of the user in order to create the item. 

My question is how I get this ID?

I am using K2 smartforms to create the item.

 

I've tried enabling hidden lists thinking the UserInformation list might be visible but it isn't.

Is there another way which I can use to get the SharePoint ID of the user?

 

Thank you,

JohanL


2 replies

Badge +7

Have you tried the powershell commands listed here?


 


http://stackoverflow.com/questions/11762166/sharepoint-2010-get-group-id


 


Thanks,


Jake

Badge +10

Hi Jake,

 

I have no doubt that Powershell will get me the user id, but I cannot use this from K2 smartforms without writing a custom Service Broker which I want to avoid at all costs.

 

Any suggestions making use of the current functionality in the K2 platform?

Please advise.

 

Thanks,

JohanL

Reply