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

User Update Rule - Custom Action - Java class - challenges

IAM_99
Regular Contributor II
Regular Contributor II

Hi Team,

We have  Java program to update few user cpXX properties, upon userupdate rule condition matches.(custom action- java class method)

Code logic has below 

1. Calculate CP20 values ( Cp18+ Cp17+"Sales")

2. using REST api - updateUser() 

Its working for 20 users (import)  , if its goes beyond ( for ex: 50 , 200) , its copying duplicate values  into cp20 attribute.

Username - Cp20

~~~~~~~~~~~~~~~~~~~~~~~~

User01   - ABC+XYZ+Sales

User02   - PQR+YZ+Sales

User03   - ZMR+OYZ+Sales

User04   - ZhR+OtZ+Sales

........

if its 100 users - its making duplicates

User01   - ABC+XYZ+Sales

User02   -ABC+XYZ+Sales

User03   - ZMR+OYZ+Sales

User04   - ZMR+OYZ+Sales

if we run same same program local ( IDE tool) with 100 users in for loop , its working, we are looping through for loop.  when we import 100 users , i guess saviynt also call some kind of loop.

not sure it is race condition or mutli threading causing issue ?

any inputs on the above ?

 

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

Which api is used ?


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

IAM_99
Regular Contributor II
Regular Contributor II

We are using updateUser() api , but the issue is not with that api as the values getting  passed is ( java program) getting updated.

IAM_99_0-1670566130189.png

 

Java program is working for 140 Users import ( same firstname, and lastname) but if its goes beyond that it generates duplicates and update like above.

 

 

It seems race condition do you see any parameters set on no of users to be processed in externalconfig


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

IAM_99
Regular Contributor II
Regular Contributor II

we have modified to 1000 still its creating duplicates.

IAM_99_0-1670602406351.png

 

 

Did you restarted server 


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

IAM_99
Regular Contributor II
Regular Contributor II

yes 2 times

Did you changed 150 to 1000 ? first config


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