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

Auto approve request on the basis of dynamic attribute.

GeSaviynt
New Contributor II
New Contributor II

Hi Team,

There are two dynamic attributes 'Database Access' and 'Server Access'. If end user will raise request for 'Database Access' for approval it will go to 'John' but if 'John' will raise a request for himself or for others it should auto approve. Similar for 'Server Access'.

In Approval workflow : I am checking in if/else condition, but it's not working.

(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.executeQuery("select ugu.id from Usergroup_users ugu where ugu.user_groupkey.id = 48 and ugu.userkey.id= requestedby?.id")?.size() != 0)

if any one has any sample for the use case. Please share it.

Thanks

Geeta

 

3 REPLIES 3

DaanishJawed
Saviynt Employee
Saviynt Employee

Hi @GeSaviynt ,

We are checking if this is feasible. Will keep you posted.

rushikeshvartak
All-Star
All-Star
  • Database access / Server Access are Dynamic attribute name/value ?

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

DaanishJawed
Saviynt Employee
Saviynt Employee

Hi@GeSaviynt ,

Thanks for reaching out.

Populate a custom property for all users who are part of a user group. You can then call this custom property in the if-else block using the below syntax.

requestedby.customproperty1 == 'UG'

Workflow Screenshot as below.

Screenshot 2023-04-12 at 2.56.52 PM.png

Thanks.