Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Users whose department numbers have changed within the last month.

JPMac
Regular Contributor II
Regular Contributor II

I want to write a query to obtain users whose department number has changed within the last month using reporting.

 

However, the users table and user history table do not contain the information required for this condition.

How can I write a query to generate this report?

3 REPLIES 3

Manu269
All-Star
All-Star

Store and Read blob data from user update history ... - Saviynt Forums - 40660

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

dgandhi
All-Star
All-Star

Refer this if it helps:

https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter17-EIC-Analytics/Managing-An...

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

rushikeshvartak
All-Star
All-Star

Use below query for your requirement 

rushikeshvartak_0-1719424284480.png

select u.username, u.userkey, uh.changelog from users u inner join usershistory uh on u.userkey = uh.userkey where username = '137658'
and uh.UPDATEDATE >= DATE_SUB(CURDATE(), INTERVAL 1 MONTH) and changelog like '%departmentname%'

 

rushikeshvartak_1-1719424314476.png

 

Reference https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter17-EIC-Analytics/Managing-An... 

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.