# How to audit count of Key User Actions?

**URL:** <https://community.dynatrace.com/t/how-to-audit-count-of-key-user-actions/19523>\
**Category:** Real User Monitoring\
**Tags:** user-actions\
**Created:** [June 8, 2020, 3:59pm UTC](https://community.dynatrace.com/t/how-to-audit-count-of-key-user-actions/19523 "2020-06-08T15:59:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff\_rowell](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jeff\_rowell](https://community.dynatrace.com/u/jeff_rowell)\
**Post date:** [June 8, 2020, 3:59pm UTC](https://community.dynatrace.com/t/how-to-audit-count-of-key-user-actions/19523/1 "2020-06-08T15:59:46Z")

</div>

I have been told that there is an environmental limit of 500 Key User Actions and am trying to find a way to determine what the total number of configured Key User Actions in our environment currently is.

Can somebody tell me how this can be done? I could, of course, use USQL to obtain counts. E.g., “select DISTINCT internalKeyUserActionId from useraction” but this would not necessarily give the actual total since there may be key user actions configured that have not seen traffic in the past 35 days and, hence, will not appear (e.g., older invalid actions that are still flagged as Key User Actions).

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 8, 2020, 4:05pm UTC](https://community.dynatrace.com/t/how-to-audit-count-of-key-user-actions/19523/2 "2020-06-08T16:05:22Z")

</div>

If I understand correctly, the 500 limit is for the rules of key user actions, not that it will only collect the first 500 key user action of users. Much like application detection rules, you are limited by the amount of rules defined, not buy the number of user sessions that fall into that rule.

Let me know if you need any additional assistance.

---

<div class="post-metadata">

**Author:** ![jeff\_rowell](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jeff\_rowell](https://community.dynatrace.com/u/jeff_rowell)\
**Post date:** [June 8, 2020, 5:31pm UTC](https://community.dynatrace.com/t/how-to-audit-count-of-key-user-actions/19523/3 "2020-06-08T17:31:20Z")

</div>

Yes, I understand that. I.e., the 500 limit is, if I understand correctly, the quantity of Key User actions that can be defined in the system… what you are calling rules… But how I can audit the current count is not clear.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 8, 2020, 6:02pm UTC](https://community.dynatrace.com/t/how-to-audit-count-of-key-user-actions/19523/4 "2020-06-08T18:02:04Z")

</div>

At this time, it doesn’t appear that we have the ability to do this from the API. I would recommend posting an RFE on this, especially since i heard that it was asked internally a few days ago and the employees aren’t supposed to post recommendations so it will be up to us to post them! Here’s a link to post to:

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3D77c3ff6a-b9c2-4144-9f49-e89ce0646e2a&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**

---

<div class="post-metadata">

**Author:** ![jeff\_rowell](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jeff\_rowell](https://community.dynatrace.com/u/jeff_rowell)\
**Post date:** [June 10, 2020, 3:45pm UTC](https://community.dynatrace.com/t/how-to-audit-count-of-key-user-actions/19523/5 "2020-06-10T15:45:03Z")

</div>

I did manage to obtain a total environment count of configured Key User Actions by using the “key user action overview” chart - to do this I had to select each of our configured applications in the chart filter… the chart then told me how many Key User Actions were configured for that applicaiton. This was a rather time consuming process since we have a large number of applicaitons, but it did give me the count. If anyone can suggest an better/quicker way to get that counts please let me know.

---

<div class="post-metadata">

**Author:** ![adm](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@adm](https://community.dynatrace.com/u/adm)\
**Post date:** [March 20, 2023, 7:36pm UTC](https://community.dynatrace.com/t/how-to-audit-count-of-key-user-actions/19523/6 "2023-03-20T19:36:09Z")

</div>

You can get the count with the API. Have to hit this endpoint to get all the web applications:

> **[Web application configuration API - GET all web applications](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/rum/web-application-configuration-api/web-application/get-all)**
>
> List all web applications via the Dynatrace API.

Then loop through them and add up the total KUAs of each app with the help of this endpoint:

> **[Web application configuration API - GET key user actions](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/rum/web-application-configuration-api/key-user-actions/get-configuration)**
>
> View key user actions of a web application via the Dynatrace API.
