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

how to increment username +1 in select MS SQL query max value

AJ23494
New Contributor II
New Contributor II

Hi Team , 

how to increment max user id through select query in  Global Config-->Identity Lifecycle--> user form. 

Thanks 

Ankit Jindal

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

rushikeshvartak_0-1658944717757.png

select max(userkey )+1 as id from users

rushikeshvartak_1-1658944734898.png

Admin -> Global Configuration -> Identity Repository  -> Register User Form

 


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

avinashchhetri
Saviynt Employee
Saviynt Employee

Hi @AJ23494,

What is the use case for this requirement ? The user id i.e userkey is the primary key in the users table and  is  auto incremented. Any new user that gets created gets a non-null, auto incremented value which is unique across the users table.

 

 

Regards,
Avinash Chhetri