Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Listing resource owners from a group in a workflow

Sampsa
New Contributor
New Contributor

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?

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

User Group object is not exposed in workflow

Enhancement in accepted by product team

https://ideas.saviynt.com/ideas/EIC-I-3540


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Sampsa
New Contributor
New Contributor

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?

Try custom query block and assign approval to requestor if requestor is member of resource owner group which should auto approve the request.


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

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


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 

 


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.