RSA Identity Governance & LIfecycle recipes is a collection of items, to help you get the most out of your product deployment. For example, a useful report with the SQL to implement or a way to achieve some advanced rule processing.
Make sure you thoroughly test any changes in lower environments first before promoting them to Production.
Optional Changes to the Chart
If you want to change this chart to display more/less than 8 weeks, you need to update 3 key values in the SQL.
"CONNECT BY LEVEL <= 8" - the 8 here, is the number of weeks you want to display, so you could change this to be 5 or 15
"where creation_date > sysdate - 56" - the 56 here, is the number of total days, depending on how many weeks you have selected.
So if you have 10 weeks, you would have 10weeks * 7 days = 70
So if you have 12 weeks, you would have 12weeks * 7 = 84
"where deletion_date > sysdate - 56" - same as the point above
I would strongly recommended you do not have too many weeks, otherwise it will not display very well in the UI.
The SQL to use:
Please test this works first, within your environment.
(select*from (select T1.tmpWeek as"Week", CASEWHEN T2.TotalPerWeek ISNULLTHEN CAST(('0')AS NUMBER(20))ELSE CAST(T2.TotalPerWeek AS NUMBER(20))ENDAS "# Leavers", CASEWHEN T3.TotalPerWeek ISNULLTHEN CAST(('0')AS NUMBER(20))ELSE CAST(T3.TotalPerWeek AS NUMBER(20))ENDAS "# Joiners" from ( SELECT to_char(sysdate -(7* level)+7,'YYYYMMDD')as FullDate, to_char(sysdate -(7* level)+7,'WW')as tmpWeek FROM dual CONNECTBY LEVEL <=8 ) t1 leftjoin ( select 'Leavers'as AppAction, tmpWeek, count(deletion_date)as TotalPerWeek from ( selectdistinct ID, deletion_date, to_char(deletion_date,'WW')as tmpWeek from avuser.pv_users where deletion_date > sysdate -56 ) groupby tmpWeek ) t2 ON t2.tmpWeek = t1.tmpWeek leftjoin ( select-- this will tell you how many accounts have been created per week 'Joiners'as AppAction, tmpWeek, count(creation_date)as TotalPerWeek from ( selectdistinct ID, creation_date, to_char(creation_date,'WW')as tmpWeek from avuser.pv_users where creation_date > sysdate -56--change this to be the same number of days, as per the total weeks selected ) groupby tmpWeek ) t3 ON t3.tmpWeek = t1.tmpWeek orderby FullDate asc) )
The output looks like this in my environment. Showing that there were 1651 new joiners in week 23 of this year and 41 leavers in week 27 of the year
Steps to create within the RSA IGL UI
Log into RSA IGL as a user who can create charts. In my example, im using AveksaAdmin
Go to "Reports" / "Charts"
Select "+ Create Chart" button
Under the "General Tab" add the following details:
Type = Multiple Series Chart
Under the "Query" Tab, copy the SQL from above and hit "Preview", you should see some results.
If you get an error at this stage, please test your SQL in a Query tool, like "SQL Developer" or "SQL Squirrel" to ensure it works first. If it still doesn't work, please share your SQL and a screen shot of the issue below.
Under the "Columns" Tab, please use the configuration shown in the image below, however you can change this to be whatever you like. I think that using red for leavers and green for joiners, looks good.
Under the "Display Attributes" tab, you should select "Style = MS Line". Please also apply these settings
Under "Title and Axis Names"
Caption: "Weekly Joiners and Leavers"
Sub Caption: "For the Previous 8 Weeks"
X Axis Name: "Week #"
Y Axis Name: Total
Under "Functional attributes"
Select "Animation" checkbox (ticked)
Select "Show Labels" (Ticked)
Select "Show Values" (Ticked)
There are MANY other "display attributes" you can play with on this screen, so please update and make changes as you see fit.
Add this chart to a dashboard, so you can easily see the data.