and more in a single search tool across platforms. Read the announcement here. |
01/11/2023 06:20 AM
Hi,
We are using a user groups as the resource owner for an endpoints. I would like to skip the resource owner approval step if the requester is part of that user group. In the if-else block, how can I list the endpoint's resource owner user group members? Can someone share an example?
01/11/2023 08:22 AM
User Group object is not exposed in workflow
Enhancement in accepted by product team
https://ideas.saviynt.com/ideas/EIC-I-3540
01/11/2023 11:03 AM
Thanks for the reply.
Is there any other way to skip the resource owner approval step if the user is part of the resource owners group?
01/11/2023 11:37 AM
Try custom query block and assign approval to requestor if requestor is member of resource owner group which should auto approve the request.
01/11/2023 12:10 PM
You can create dynamic attribute on request form (keep it hidden) and use in if else logic
custom query will not work here as in case requestor and approver is same and only 1 person then request will be assigned to admin
01/11/2023 01:13 PM
As per our understanding custom assignment block will auto approve the request if approval is assigned back to requestor. In our use we used such logic where we have to skip manager approval if user is part of certain group and achieved with below query in custom assignment block
select coalesce((select case when u.userkey = ${user.id} then ${requestedby.id} when u.userkey =${requestedby.id} then ${requestedby.id} else u.userkey end as userkey from users u, entitlement_types et,entitlement_values ev, account_entitlements1 ae1, accounts a, user_accounts ua where u.userkey = ${user.id} and u.userkey = ua.userkey and ua.accountkey = a.accountkey and a.accountkey = ae1.accountkey and ae1.entitlement_valuekey = ev.entitlement_valuekey and ev.entitlementtypekey=et.entitlementtypekey and ev.entitlement_value in ('<entitlement_name>') and et.entitlementname='Groups'),(select manager as userkey from users where userkey = ${user.id} ))as userkey