Skip to main content

Hi Mates,

 

I would like to use K2 Five smartobject to retrieve two or more SharePoint 2016 Group users.

But current WebAPI function only allow to retrieve one Sharepoint Group.

 

Thanks in advance.

Hi benson;

 

If you are integrating with SharePoint 2013/2016, you should use the Management > Groups SmartObject:

 

  • FYI-Retrieving users and groups from AD and SharePoint.
    Resolution:
    The Identity Service is a new cache mechanism that has been introduced from K2 4.5 KB001370. This new cache mechanism is designed to work with Active Directory groups, SharePoint Groups and also K2 roles. Previously one configured the Cache Timeout value on the Active Directory User Manager (ADUM) settings.

    Please look at the following help files: (how to change caching interval etc.)
    http://help.k2.com/helppages/k2blackpearlGettingStarted4.6/webframe.html?tweaking_identity_cache_performance_for_the_k2_server.html
    in short:


    To refresh the identity cache:
    Update the expire times for the SharePoint group in the GroupProvider database using SQL Management Studio
    a. (update [K2HostServer].[Identity].[Identity] set ExpireOn = GETDATE(), MembersExpireOn = GETDATE(), ContainersExpireOn = GETDATE() where Name like '%XXXX%'
    b. You can either leave out the WHERE clause and expire the whole cache, or just change XXXX to the specific users/groups you would like to expire.
    3. Forced a group refresh ( executed the "Find Group Users" method on the "URM User" SmartObject)

I hope you find this post helpful in resolving part of your issue if not all. Should it be helpful in any way, please mark it as such by "Mark As Solution" or "Kudo" as it will be of help to other members of the community who encounter a similar issue.

 

Regards,

Widson.

 

 

 


Dear Widson

 

Thank you for your reply, which method will be used for this function?

 

Thanks & regards,

Benson


Hi Benson;

 

Thank you, for the feedback.

Get Groups method, should return group availlable, Get Group by ID, should be able to return the desired group.

also play around with other methods on your application.

 

Kindly remember the following:-

I hope you find this post helpful in resolving part of your issue if not all. Should it be helpful in any way, please mark it as such by "Mark As Solution" or "Kudo" as it will be of help to other members of the community who encounter a similar issue.

 

Regards,

Widson.


Reply