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

Users whose department numbers have changed within the last month.

JPMac
Regular Contributor
Regular Contributor

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.