Hi,
I am using k2 designer I need to check current system user whether present in a group or not.
Hi,
I am using k2 designer I need to check current system user whether present in a group or not.
In K2 Designer, you can reference your current logged in user in your rules.
This means you can use a rule to execute a SmartObject method, then pass whatever value you want for the current user as inputs. Use this in combination with a AD User SmartObject to check if a user is in a particular AD group.
Here's what I will do:
1. Call the AD User's GetUsersByGroup method, specify the group you want to check in the input mapping, add a filter to filter out the current user, then map the result to a hidden data label. If the user belongs to a group, the filter will return one result. If not, nothing will be returned, so your hidden data label will be empty.
2. Add a conditional rule to check if that hidden data label is empty. If it is not empty, it means the user is in that group.
Thank you soo much nerd... :)
Got the solution by using smartobject helper method.
Hi Team,
Could you please let me know which smart object i should use which tells me the details that perticular user belogs from perticular Role?
Regards,
Arun
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.