and more in a single search tool across platforms. Read the announcement here. |
02/09/2024 02:41 AM
Hello Everyone,
We have a requirement to create a report which lists the user for whom the attribute changed (say when job title and city)on user import. When any one of this attribute change we need the user to be listed in the report.
Tried the below options:
1.Created user update rule with action as notify email which triggers email but this would be triggering each mail for one user. Will get a lot of email when there are many updates
2. Tried using the Custom SQL query we don't have table / column which list the attribute updated. In users table i got the update date but filter further when attribute change is done for particular 2 attributes
Any help is much appreciated.
Thanks,
Sabthami Subramanian
Solved! Go to Solution.
02/09/2024 03:06 AM
Hi @sabthamis ,
Can you try referring to the below documentation links and check. This should work:
Generating Reports With Binary Large Object Data (saviyntcloud.com)
Creating a report to fetch the User's History (saviyntcloud.com)
The user history changelog is stored in the usershistory table and can be referenced when you create an analytic on IGA.
02/09/2024 03:12 AM - edited 02/09/2024 03:14 AM
Hi @sabthamis ,
userhistory is the table and column name is changelog. you can find more details in below docs :
Thanks,
Amit
02/09/2024 03:42 AM
Hi @AmitM @armaanzahir - I tried already with the below query and i don't see the changelog as readable.
select b.username, b.firstname,b.lastname,a.UPDATEDATE,a.changelog AS 'ChangedDate'
from usershistory a,users b
where DATE_FORMAT(a.updatedate,'%Y-%m-%d')=CURDATE()
AND a.USERKEY = b.USERKEY
02/09/2024 03:58 AM
Hi @sabthamis
This is working fine with alias changes to the query.
select b.username, b.firstname,b.lastname,a.UPDATEDATE as updatedte,a.changelog from usershistory a,users b where DATE_FORMAT(a.updatedate,'%Y-%m-%d')=CURDATE() AND a.USERKEY = b.USERKEY
You don't have to define the alias for changelog column.