# Is user session information already available in Grail?

**URL:** <https://community.dynatrace.com/t/is-user-session-information-already-available-in-grail/52517>\
**Category:** DQL\
**Tags:** dql, grail, dashboards, user-sessions\
**Created:** [July 16, 2025, 7:30pm UTC](https://community.dynatrace.com/t/is-user-session-information-already-available-in-grail/52517 "2025-07-16T19:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge3229](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@Jorge3229](https://community.dynatrace.com/u/Jorge3229)\
**Post date:** [July 16, 2025, 7:30pm UTC](https://community.dynatrace.com/t/is-user-session-information-already-available-in-grail/52517/1 "2025-07-16T19:30:45Z")

</div>

Hello everyone, good afternoon. I’d like to ask if you know if it’s possible to query user session information from Grail?

Running the fetch command, I see that user.sessions exists in the suggestions, and I tried to read the information, but it showed a permissions error. I’ve already created a policy and added that policy to a group where my user is assigned, and now it only shows that there are no records.

This was the error message that was showing me:

“{  
&nbsp; “error”: {  
&nbsp;&nbsp;&nbsp; “message”: “NOT\_AUTHORIZED\_FOR\_TABLE”,  
&nbsp;&nbsp;&nbsp; “details”: {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “exceptionType”: “DQL-AUTHORIZATION”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “errorType”: “NOT\_AUTHORIZED\_FOR\_TABLE”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “errorMessage”: “Insufficient permission to access table (user.sessions).”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “arguments”: [  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “user.sessions”  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ],  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “queryString”: “fetch user.sessions\n| filter (useraction.application == \“ONE\” or userevent.application == \“ONE\” or usererror.application == \“ONE\”)\n| summarize session\_count = count(), by:{user.id}\n| sort session\_count desc\n”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “errorMessageFormatSpecifierTypes”: [  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “GENERAL\_MESSAGE”  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ],  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “errorMessageFormat”: “Insufficient permission to access table (%1$s).”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “queryId”: “471f733c-880d-41c4-9e16-890e1cdcbb0b”  
&nbsp;&nbsp;&nbsp; },  
&nbsp;&nbsp;&nbsp; “code”: 403  
&nbsp; }  
}”

This is the policy I added

 ![Jorge3229_0-1752694054728.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/7/676be8bad3255b1759400d9b822afb3ea68d9234.png)

and this is what appears to me now when executing the dql

 ![Captura de pantalla 2025-07-16 132424.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/2b4e53ff4050abf9f4d43ed2ccdfce405434be7c.png)

 ![Jorge3229_1-1752694111457.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/2/32bcae15eb6fba56ccb5348b1c8a073ead8b6f5b.png)

Has anyone already worked with that information?

Thank you

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [July 17, 2025, 7:59am UTC](https://community.dynatrace.com/t/is-user-session-information-already-available-in-grail/52517/2 "2025-07-17T07:59:41Z")

</div>

[@Jorge3229](https://community.dynatrace.com/user/58775)&nbsp;I think its planned but not yet available for all users unless you signed up for preview

> **[Built-in Metrics on Grail](https://docs.dynatrace.com/docs/analyze-explore-automate/metrics/built-in-metrics-on-grail)**
>
> Get to know the equivalents of the classic built-in metrics supported on Grail.

> **[Join a preview - Preview program](https://docs.dynatrace.com/docs/whats-new/preview-releases#join-a-preview)**
>
> We value your insights! By participating in product previews, you become a key part of our development process, ensuring that our solutions continue to meet your needs. | Learn about our Preview releases and how you can participate in them.

---

<div class="post-metadata">

**Author:** ![Jorge3229](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@Jorge3229](https://community.dynatrace.com/u/Jorge3229)\
**Post date:** [July 17, 2025, 11:54pm UTC](https://community.dynatrace.com/t/is-user-session-information-already-available-in-grail/52517/3 "2025-07-17T23:54:16Z")

</div>

Thank you so much
