# Permissions in NextJS API

**URL:** <https://community.auth0.com/t/permissions-in-nextjs-api/185574>\
**Category:** Get Help\
**Tags:** management-api, roles\
**Created:** [April 16, 2025, 2:48pm UTC](https://community.auth0.com/t/permissions-in-nextjs-api/185574 "2025-04-16T14:48:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vt222\_rtyu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vt222_rtyu/32/74308_2.png) [@vt222\_rtyu](https://community.auth0.com/u/vt222_rtyu)\
**Post date:** [April 16, 2025, 2:48pm UTC](https://community.auth0.com/t/permissions-in-nextjs-api/185574/1 "2025-04-16T14:48:16Z")

</div>

Hi there. I have a NextJS project, and due to some reasons, I’m implementing an API in this NextJS instead of some external app.

I need to work with user permissions in this API endpoints, but am I even able to do that? Looking at the docs and some forum topics, it seems like auth0 treats NextJS apps only as a client app, and not as an API.

What options do I have to make permissions available in my project?

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [April 16, 2025, 8:16pm UTC](https://community.auth0.com/t/permissions-in-nextjs-api/185574/3 "2025-04-16T20:16:40Z")

</div>

Hi @vt222_rtyu,

Welcome to the Auth0 Community !

Firstly, your NextJS application is treated by Auth0 as a Regular Web Application, not as an API. However you can register a custom API in the Auth0 Dashboard and call it from your application. You can follow [this guideline](https://developer.auth0.com/resources/guides/web-app/nextjs/basic-authentication#call-a-protected-api-from-next-js) on how to integrate your NextJS app within Auth0, that also includes step by step documentation on how to **call a Protected API resource**.

This would be the way to accomplish getting user permissions on the server side if you want to use [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac), so you can assign permissions to users directly, or based on their role. You can also check out the [Manage Role-Based Access Control Permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/rbac-users/assign-permissions-to-users) documentation.

Then you can make a call to the Management API on the `GET /v2/users/{id}/permissions` endpoint in your app to access them.

I hope this helps!  
Thanks,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 30, 2025, 8:17pm UTC](https://community.auth0.com/t/permissions-in-nextjs-api/185574/4 "2025-04-30T20:17:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
