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 Attribute Check fails to generate unique email

nvachhani
Regular Contributor
Regular Contributor

We are using the user attributes table to perform addition uniqueness check on creating new user emails. The email generation rule has a basic config:

Rule1 -

firstname

.

lastname

customstring

 

Rule2 - 

firstname

.

lastname

AutoIncrement - 1

customstring

 

I can see the logs fail to continue the autoincrement once the additional email address is found in the user_attributes table:

"2024-03-02T19:14:51.441+00:00","ecm","services.WorkflowService","http-nio-8080-exec-4-vt2jx","DEBUG","userattribute email check hql = Select new Map(count(ua.data) as total) from UserAttributes ua where data=:email "
"2024-03-02T19:14:51.443+00:00","ecm","services.WorkflowService","http-nio-8080-exec-4-vt2jx","DEBUG","Email userfirst.test2@xxxstage.com exists in user attributes so ignoring rule ( concat(users.firstname , substring('.',1,1) , users.lastname , substring('~1',1,1) , substring('@xxxstage.com',1,16)) ) "
"2024-03-02T19:14:51.443+00:00","ecm","services.WorkflowService","http-nio-8080-exec-4-vt2jx","DEBUG","All rules exausted. Unable to generate email"

 

Full logs are attached. Is there something wrong with the check against the user_attributes table? 

 

4 REPLIES 4

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @nvachhani,

Can you please share the screenshot of the rules.

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

nvachhani
Regular Contributor
Regular Contributor

Screenshots are attached.

Screenshot 2024-03-06 104509.png

Screenshot 2024-03-06 104549.png

Screenshot 2024-03-06 104611.png

   

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @nvachhani,

You can use the email generation rule with two rules using the basic config to achieve this requirement(please refer to the below screenshots). 
or else you can use also use the advanced query as well.

please refer to the below screenshots.

Rule1 :

sudeshjaiswal_0-1709791596895.png

Rule 2:

sudeshjaiswal_1-1709791614689.png


sudeshjaiswal_2-1709791655986.png

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

nvachhani
Regular Contributor
Regular Contributor

Hi, this is what I am using already above. But the rule fails to continue the autoincrement once the additional email address is found in the user_attributes table