How to find the Group name of the logged in User belongs to?

  • 25 April 2017
  • 1 reply
  • 1 view

Badge

i need to find the loggedin User belongs to which group?

 

how to find or what to use to get the group name of the logged in User in K2 Appit for Sharepoint.

 

Appreciate any Help!


1 reply

Badge +12

Hi Sanjeev,


 


This can be done by creating a smart object via the User Role Manager service.


 


To this you will need to go to the following:


 



  • K2 Management page
  • Integration tab and click on service instances
  • Look for the User Role Manager Service
  • Create smartobjects from this with your own name
  • Then to find the groups the user belongs to you will need to execute the smart object. For this you will need to go to categories and the User Role manager service.
  • Furthermore from here look to select the UM group smart object and execute the method ‘Find User Groups’ specifying the name of the user. This should then find all the groups the user is part of here.

Kind regards,


 


Percy

Reply