User update rule - Custom Action

WilliamD
New Contributor III
New Contributor III
Hello,

I want to update a user attribute in a user update rule.
For example, if I detect the user has changed of location, I want to set a value in the customproperty64.

I checked the different options, but I didn't find a solution to do it.

On the freshdesk, in the documentation: https://saviynt.freshdesk.com/support/solutions/articles/43000431681-creating-user-update-rules
 
I saw there was a possibility to implement a custom action:

 

Capturecustomaction.JPG

 
A class is specified as example:
 
For example, Class Name: com.saviynt.custom.UserPreprocessValidator.validator.CustomClass, Method Name: customMethod
 
Is it possible to have the custom jar as example ?

Thanks
11 REPLIES 11

rushikeshvartak
All-Star
All-Star

This will be simple logic and does not required custom jar

in condition specify 

user location and is updated then in action you can do respective activities 

I'm agree it's a simple logic,

But how can I update a user attribute with using user update rule without custom jar ?

Use saviynt 4 saviynt connector db/ rest

I'm trying to Use saviynt 4 saviynt connector db.

The connection with DB is successful.

I want to make a simple update to test it, but it doesn't work.

I use this config in UPDATEUSERJSON:

{"updateUserQry":["Update users set CUSTOMPROPERTY1 = 'coucou' WHERE USERKEY = '${user.id}'"]}

Any idea why it doesn't wok ?

Thanks

It should come under updateAccount block

In the user update rule,
I use Create Update User Task, Not Create Update Account Task

sk
All-Star
All-Star

WilliamD
New Contributor III
New Contributor III

Thanks for your reply SK, 
I didn't know this preprocess, but it seems with this method I can't see if a value has changed compared to the previous import

Yes you would be able to identify that because using preprocessor you will have user current state data and new state data. Please follow the link provided by Rushi to get better understanding of this feature.


Regards,
Saathvik