# Is there authority level in nakama?

**URL:** <https://forum.heroiclabs.com/t/is-there-authority-level-in-nakama/5837>\
**Category:** Runtime Framework\
**Tags:** server-framework\
**Created:** [November 28, 2024, 9:05am UTC](https://forum.heroiclabs.com/t/is-there-authority-level-in-nakama/5837 "2024-11-28T09:05:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![virtouso](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/virtouso/32/679_2.png) [@virtouso](https://forum.heroiclabs.com/u/virtouso)\
**Post date:** [November 28, 2024, 9:05am UTC](https://forum.heroiclabs.com/t/is-there-authority-level-in-nakama/5837/1 "2024-11-28T09:05:33Z")

</div>

i know there are “before, after” methods to implement action filters in Nakama. but can I modify jwt tokens on the backend side to give authorities to some users?

i need this to make an admin, support panel for the times that need to respond to users. I’m not sure there is such a thing in Nakama. maybe I need to make another app to directly access database. right

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [November 28, 2024, 9:53am UTC](https://forum.heroiclabs.com/t/is-there-authority-level-in-nakama/5837/2 "2024-11-28T09:53:13Z")

</div>

@virtouso you could use a before hook on authenticate to set [session variables](https://heroiclabs.com/docs/nakama/concepts/session/#session-variables) with your custom roles.

You can then access them with the appropriate [context variable](https://heroiclabs.com/docs/nakama/server-framework/introduction/runtime-context/#RUNTIME_CTX_VARS).
