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

required a analytics report query for number of users having access to a application

Growit
New Contributor
New Contributor

Could we please help to get a report of number of users which have access to a application per month since April last year?

For example: 2023.04 - 212 users
2023.05- 100 users etc.

10 REPLIES 10

rushikeshvartak
All-Star
All-Star

 

 

rushikeshvartak_0-1725368615800.png

SELECT ep.endpointname,
       Date_format(a.created_on, '%Y.%m') AS Month,
       Count(DISTINCT ua.userkey)         AS user_count
FROM   user_accounts ua
       JOIN accounts a
         ON ua.accountkey = a.accountkey
       JOIN account_entitlements1 ae
         ON ae.accountkey = a.accountkey
       JOIN entitlement_values e
         ON e.entitlement_valuekey = ae.entitlement_valuekey
       JOIN endpoints ep
         ON ep.endpointkey = a.endpointkey
WHERE  ep.endpointname = 'AD_endpoint_test'
GROUP  BY Date_format(a.created_on, '%Y.%m')
ORDER  BY month ASC; 

 


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

no data found i m getting for the query if i run in the data analyzer, there are somany users eventhough no data found

Did you update endpoint as per your environment 


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

yes i have given in the place of 

SELECT ep.endpointname,
       Date_format(a.created_on, '%Y.%m') AS Month,
       Count(DISTINCT ua.userkey)         AS user_count
FROM   user_accounts ua
       JOIN accounts a
         ON ua.accountkey = a.accountkey
       JOIN account_entitlements1 ae
         ON ae.accountkey = a.accountkey
       JOIN entitlement_values e
         ON e.entitlement_valuekey = ae.entitlement_valuekey
       JOIN endpoints ep
         ON ep.endpointkey = a.endpointkey
WHERE  ep.endpointname = 'XYZ'
GROUP  BY Date_format(a.created_on, '%Y.%m')
ORDER  BY month ASC

 

Share logs


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

thanks i got the data, but user is asking in this report what it shows  in user count

number of users who requested an account in application asked (new accounts), or a number of active users in a given month?

can you pls help on this. pls help me on both queries separately to understand so i can share the user

Please raise new thread for same.Please click the 'Accept As Solution' button on the reply (or replies) that best answers your original question and hit 'Kudos' button 👍.

Refer https://forums.saviynt.com/t5/identity-governance/extract-request-history-only-one-endpoint-for-the-...


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

Pls help me on this

I have given link of report use same.


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

@Growit  Please click the 'Accept As Solution' button on the reply (or replies) that best answers your original question and hit 'Kudos' button 👍.


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