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

Workflow is not working as expected- Requests getting AUTOAPPROVE

haardik_verma
Regular Contributor
Regular Contributor
The Workflow in our environment that is configured for AD & Azure AD systems is not working as expected.
 
In the beginning of the workflow, there is an If-Else block, that ensures that for the case of self access removal (if the requestor and beneficiary are same and the request is for access removal only), then request should be auto-approved. In all other cases like access addition or even access removal done on behalf will go for respective approvals. 
 
The approval type is decided by the entitlement's cp20.
haardik_verma_2-1688363296171.png

(user.username == requestedby.username) and (requestcounts.ADD_ACCESS_REQUESTS_COUNT == 0)

 
 
Now we are testing and planning for Disconnected Systems. We used ENDPOINTS_FILTER of AD connection to create logical endpoints for every disconnected system. These endpoints, as they come under AD security system, also follow the same workflow.
 
The requirement is that for every case of request made for disonnected systems endpoints, the request should go for respective approvals and should not be auto-approved.
All the self-removal access requests for normal AD and Azure AD endpoints should still be getting auto-approved as before.
 
We tried the below logic in the same If-Else block 
(user.username == requestedby.username) and (requestcounts.ADD_ACCESS_REQUESTS_COUNT == 0) and (endpoints.endpointname.toLowerCase().contains('disconnected') == false) and (entitlement.entitlement_value.toLowerCase().contains('disconnected') == false)
haardik_verma_4-1688363326908.png
This was tested and was working as expected last week. But this week all the self-removal of accesses for disconnected systms endpoints started getting auto-approved.
 
We tried variations in logic, tried to split the logic in 2 different If-Else Blocks, tried keeping the Expression Language as Groovy and also leaving it on 'Select', But nothing worked... All the self removal requestes for disconnected systems were still getting auto-approved.
 
To test if there was something wrong with our logic or with the workflow, we added a manager's block.
haardik_verma_5-1688363352099.png
Now there is NO LOGICAL WAY for requests to get autoapproved. But they still are getting auto-approved.
 
Please check this. If the workflow is corrupted (is this possible?)

Thanks & Regards,
Haardik Verma
7 REPLIES 7

rushikeshvartak
All-Star
All-Star

Remove groovy from select expressions 


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

I tried that as well.. kept the expression language on 'select'.

But still it is behaving that way.

I raised a ticket on freshdesk, we had a call where I explained everything and they agreed that this is something that should have worked, they also captured logs . But they directed me towards forums for expert consultation.


Thanks & Regards,
Haardik Verma

share latest wiring


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

Hi @rushikeshvartak 

PFA latest workflow export zip file

----------------------------------------------------------------------

Endpoint Name: Disconnected-X

Entitlement_Value: CN=Disconnected System X Access B,OU=Disconnected System X,OU=Disconnected,OU=****,OU=****,DC=****,DC=****

Entitlement Display Name(because the request considers the display name as entielemtn_value): Disconnected System X - Access B

--------------------------------------------------------------------------

haardik_verma_0-1688548057773.png

 


Thanks & Regards,
Haardik Verma

Hi @rushikeshvartak ,

Any luck on this? I tried in my environment but still getting auto-approved.. Can you please check in your system.. I have added the workflow extract in previous comment.


Thanks & Regards,
Haardik Verma

vikasjv
Saviynt Employee
Saviynt Employee

Hi @haardik_verma,

Request you to create two different workflows for add access and remove access.
And also, please confirm whether any recent upgrade has happened.

Hi @vikasjv ,

There were NO upgrade/migration process done recently.

Can you please suggest some method to achieve the requirement using the existing single workflow?

There are 2 main endpoints already using this workflow..


Thanks & Regards,
Haardik Verma