Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

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 


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

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


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

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


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

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

sk
All-Star
All-Star

You can use inline preprocess to achieve this which is the best way to do this instead of using custom logic or user update rules.

https://saviynt.freshdesk.com/support/solutions/articles/43000571860-normalizing-the-identity-data-u...

https://docs.saviyntcloud.com/bundle/SSM-Admin-v55x/page/Content/Chapter03-User-Management/User-Impo...


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

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

https://docs.saviyntcloud.com/bundle/SSM-Admin-v55x/page/Content/Chapter03-User-Management/User-Impo...


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

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
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

Refer post to get actual use case example

https://forums.saviynt.com/t5/saviynt-community-knowledge-base/attribute-precedence-for-user-imports...


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