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

Compare analytics results with next run

ybharadwaj319
New Contributor
New Contributor

Hi Everyone,

We have a requirement to send email to user's manager from analytics when user meets certain condition, but we want them to be excluded in the next run of the analytics.

Is there a way we can compare the analytics results to exclude them in the next run?

Thanks in advance.

8 REPLIES 8

KrishnaGupta
New Contributor III
New Contributor III

There is no way to directly reference data from the last run of the analytics.
However this use case can be achieved with a workaround.
Can you share your use case/scenario in more detail ?


Regards,
Krishna Gupta
If you find the response useful, kindly click on the kudos button
If the response resolves your query, kindly click on the Accept As Solution button.

Hi Krishna,

Thanks for checking on this.

The use case is, when the user's data is imported to IGA from the HR source, we validate certain user attributes and if they are not as expected, we send an email to the user's manager informing them to correct it. 

As I am typing I think I can rely on the user_history table. I will try that way, but please let me know your thoughts.

Regards,

Bharadwaj Y.

In this case why don’t you use preprocessor to do data filtering or using custom jar to send email automatically 


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

We did propose this, but our client did not want to disturb the import process as it would increase the load on the job as we have been facing few performance issues with the User Import job.

Regards,

Bharadwaj Y.

In that case you can use a workaround with the following steps to address this use case:

1. Validate user attributes and if they are not as expected, update the User's CustomPropertyx to TRUE. (Add a condition to skip users whose CustomPropertyx is not null to avoid re-triggering for the same user).
2. Based on the update to User's CustomPropertyx in step 1, trigger an email from the user update rules.

To set the User's CustomPropertyx :
     a. Create a runtime analytics to validate the user attributes.
     b. Create a REST connector and use the UserImportJSON to make a REST API call to execute the analytics.
     c. Create a job to execute the UserImportJSON(you can create a chain job and add the job triggers to ensure this jobs runs just after users are imported).


Let me know if this approach suits your scenario, I can share samples for the artifacts.




Regards,
Krishna Gupta
If you find the response useful, kindly click on the kudos button
If the response resolves your query, kindly click on the Accept As Solution button.

Can you give same validation you are performing with one of CPx


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

To add more context on the use case, the comparison is with 2 user identities. 

If the CP11 of user1 is not equal to the CP60 of user2, this is when we expect this information is not as expected and report it to the user1's manager.

Regards,

Bharadwaj Y.

rushikeshvartak
All-Star
All-Star

Data is stores in elastic search hence you can’t compare action taken or result of last run.


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