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 - check user title in entitlemet.customproperty1 for approval

VrushaliL
New Contributor
New Contributor

Hi,

Test case: If the User title is present in entitlement.customproperty1 then access auto-approved. If the user title is not present in the entitlement.custompropert1 then it follows manager approval.
note: entitlement.customproperty1 has comma-separated multiple title values.

Please let me know if anything is required.

Thanks,

Vrushali.

20 REPLIES 20

NM
Esteemed Contributor
Esteemed Contributor

Hi @VrushaliL , add (entitlement.customproperty1.contains(user.title) eq true) in if else block


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

rushikeshvartak
All-Star
All-Star

entitlement.customproperty1.contains(user?.title) eq true

rushikeshvartak_0-1715011256168.png

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

VrushaliL
New Contributor
New Contributor

Hello @rushikeshvartak@NM 

I tried with the above query but its not working. Showing error while submitting request from ARS page attached screenshot for reference.

VrushaliL_0-1715060449446.png


Workflow

VrushaliL_1-1715060519485.png

Below is the screenshot of having data in entitlement.customproperty1 

VrushaliL_2-1715060796105.png

Thanks,
Vrushali

NM
Esteemed Contributor
Esteemed Contributor

@VrushaliL , could you provide with the logs at the time of request submission? and i hope you are using parallel workflow.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

  • ,"ERROR","Exception in workflow service"
    "2024-05-07T06:09:45.042+00:00","ecm","","","","javax.el.PropertyNotFoundException: Target unreachable, base expression '. customproperty1' resolved to null at de.odysseus.el.tree.impl.ast.AstMethod.invoke(AstMethod.java:84) at de.odysseus.el.tree.impl.ast.AstMethod.eval(AstMethod.java:78) at
  •  
  • Please add one more if else condition 
  • entitlement!=null
  • It seems you have raise new account request  and account will not have CP1

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hello @rushikeshvartak ,
I added one more if-else block with the condition (entitlement!=null). But facing the same issue while submitting request new account request with new access.
When I only raised a request for a new account then it followed manager approval.
But I raised a request for a new account with new access and then got a server error while submitting a request.
Attaching screenshot of the workflow and logs file for reference.

VrushaliL_0-1715147719192.png

VrushaliL_1-1715147784191.png

 


Thanks 

Vrushali

 

VrushaliL
New Contributor
New Contributor

@NM, Yes I am using parallel workflow and please find the attached logs file for reference.
Let me know if anything is required.

Thanks

Vrushali

@VrushaliL  add below also else condition include cp1 null condition try it

entitlement!=null and entitlement.customproperty1!=null


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

@Raghu added both conditions (entitlement!=null and entitlement.customproperty1!=null) but showed the same error while submitting the request from the ARS page. 

In entitlement.customproperty1 have multiple title value with comma separated as shown in below screenshot.

VrushaliL_0-1715154478021.png

I think by this workflow condition (entitlement.customproperty1.contains(user.title) eq true)

 saviynt are not able to read that title value from entitlement.customproperty1.



Thanks,
Vrushali

@VrushaliL  For Testing purpose can give 'Test' select ent and check confimr ?


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

Please check workflow type on left hand side should be parallel workflow


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak, Yes I am using parallel workflow.

 

  • Share workflow 
  • share logs
  • try only ent request

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak ,
Please find the below attached screenshot for the workflow and logs file for the entitlement request. 
Workflow: (Workflow type parallel)

VrushaliL_0-1715167623828.png

Error on ARS page for ent request

VrushaliL_1-1715168090543.png

Thanks

Vrushali.

Validate no space and typo in condition 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak 

There is no extra space or typo in if condition.
Using below conditions.


entitlement!=null and entitlement.customproperty1!=null

entitlement.customproperty1.contains(user.title) eq true

Thanks,
Vrushali

@VrushaliL  can you remove Manager approval first false condition and attach reject try

Raghu_0-1715174450836.png

 


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

NM
Esteemed Contributor
Esteemed Contributor

Hi @VrushaliL, try once with adding bracket at the start

(entitlement.customproperty1.contains(user.title) eq true) 

And keep only one value in cp1 and test whether it is going to approval or not 


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

VrushaliL
New Contributor
New Contributor

@NM and @Raghu 
I tried with above solutions but faced the same issue.

Thanks 

Vrushali

@VrushaliL : Change the WF Logic as shown below and it should work as expected. This has been tested successfully

 

Saathvik_0-1715191493693.png

Request details:

 

Saathvik_1-1715191619178.png

User Title:

Saathvik_5-1715191815155.png

Entitlement CP1:

 

Saathvik_6-1715191847484.png

 


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