Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Workflow Custom assignment to usersgroup

JPMac
Regular Contributor II
Regular Contributor II

We have created a custom assignment workflow that requires approval from a user group.

However, instead of specifying a static string for the user group, we want to assign the user group based on the value in the user's  'userType', appending the string "Group" to it.

For example, if the user's 'userType' is "Sales", the user group should be "SalesGroup".

JPMac_0-1719998876855.pngJPMac_1-1719998971949.pngJPMac_2-1719999049857.png

*failed query : select concat(users.userType,'Group') from users

Could you please let us know how to configure this to read the 'userType' and set "SalesGroup" as the approver?

3 REPLIES 3

Raghu
All-Star
All-Star

@JPMac  use below query in workflow and select Customquery:

Query :

select userkey from user_groups ug join usergroup_users ugu on ugu.USER_GROUPKEY = ug.USERGROUPKEY and user_groupname=concat('${users.userType}', 'Group')

Raghu_0-1720029172242.png

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

JPMac
Regular Contributor II
Regular Contributor II

@Raghu Thanks for your resposne. It's working.

select userkey
from user_groups ug
join usergroup_users ugu on ugu.USER_GROUPKEY = ug.USERGROUPKEY
where user_groupname=concat('${users.employeeType}','Group')

Thanks for confirmation.


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.