DEV Community

Javi Osorio
Javi Osorio

Posted on

Help- Best way to implement dynamic permissions in a Node.js & React job application platform?

Hi, I’m new to Azure and currently developing a web application using Node.js for the backend and React for the frontend. The platform allows users to apply for job postings, and I need to implement a dynamic permission system that controls access based on different roles and actions.

For example, when a user applies for a job, they should gain additional permissions to interact with the company, such as uploading documents or scheduling an interview. Additionally, some job postings should only be visible to users with specific permissions. After submitting an application, users might gain access to different sections of the platform.

I need a way to assign and modify user permissions dynamically, without hardcoding them in the code. Currently, I’m managing it with a function to update permissions in the controllers and a user schema that contains the permissions. However, I’m not sure if this is the most optimal approach.

Are there any updated tools or libraries within Azure that can help make authentication and authorization more dynamic and flexible? Or is it better to manage permissions directly within the controllers and assign them individually to each user?

I would be very grateful for any advice or responses. Thanks :D

Top comments (0)