Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend: API endpoint to change global user roles for admin #2093

Open
manjitapandey opened this issue Jan 16, 2025 · 2 comments
Open

Backend: API endpoint to change global user roles for admin #2093

manjitapandey opened this issue Jan 16, 2025 · 2 comments
Labels
backend Related to backend code effort:low Likely a few hours enhancement New feature or request priority:low Backlog of tasks that will be addressed in time

Comments

@manjitapandey
Copy link
Contributor

Is your feature request related to a problem? Please describe.
As discussed in the last user management meeting and followed by #1083 , currently we have 3 global roles namely, mapper, admin and blocked users. We lack specific endpoint to change global user roles.

Describe the solution you'd like
An API endpoint to change global user roles for admin.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@spwoodcock
Copy link
Member

Rather than an endpoint specific to admins, this should have a field admin level permission set.

Roles only really make sense related to a project, so this should take a project id.

Project managers, assistant admins, field admins, should all be able to update roles.

But they can only assign roles of equal level or below their own role!

@spwoodcock spwoodcock added priority:low Backlog of tasks that will be addressed in time effort:low Likely a few hours labels Jan 16, 2025
@spwoodcock
Copy link
Member

spwoodcock commented Jan 16, 2025

Sorry I read your description more carefully.

The global roles are only there to create new admins or block users, which are infrequent activities.

I guess an endpoint for this could make sense, but adding a frontend page to manage it afterwards might be overkill (I don't imagine it will be used much). But if its a tiny effort, I guess why not!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code effort:low Likely a few hours enhancement New feature or request priority:low Backlog of tasks that will be addressed in time
Projects
Development

No branches or pull requests

2 participants