Skip to content

PoC: role creation#1282

Open
bolmsten wants to merge 21 commits intodevelopfrom
poc_dynamic_role_creation
Open

PoC: role creation#1282
bolmsten wants to merge 21 commits intodevelopfrom
poc_dynamic_role_creation

Conversation

@bolmsten
Copy link
Contributor

@bolmsten bolmsten commented Dec 3, 2025

Screenshot 2025-12-10 at 11 46 35

Description

My proposal is to continue using pre-defined roles (now called root roles) and dashboards, but allow for the creation of dervied roles that has two attributes: “data access” and “permissions/config”. The derived roles link to the root roles and inherits the dashboard and the permissions of the root role. This means that much of the code can stay the same.

For example: I added a new root role with associated dashboard and created two derived roles ISIS_READ and CLF_READ—both using from the root role proposal_reader role. The only difference between the dervied roles is the data access tags. That would allow users to login and see a proposal table with only the proposals that has the instrument associated with their data access tag.

We can do minor configurations for each dashboard using a permission/config defined on the derived role and we can set the data access either by using tags.

It would also allow for different facilities to rename roles like FAP Reviewer to PEP Reviewer.

A derived role has the same functionality like the root role until tagged and then the data access is determined by the tag.

image image

@bolmsten bolmsten requested a review from a team as a code owner December 3, 2025 13:38
@bolmsten bolmsten requested review from TCMeldrum and removed request for a team December 3, 2025 13:38
@bolmsten bolmsten requested a review from janosbabik December 4, 2025 08:39
@bolmsten bolmsten changed the title Poc dynamic role creation Poc derivated role creation Dec 10, 2025
@bolmsten bolmsten changed the title Poc derivated role creation PoC: derivated role creation Jan 16, 2026
@bolmsten bolmsten changed the title PoC: derivated role creation PoC: Role creation Jan 16, 2026
@bolmsten bolmsten changed the title PoC: Role creation PoC: role creation Jan 16, 2026
@jekabs-karklins jekabs-karklins self-assigned this Feb 4, 2026
jekabskarklins added 2 commits February 5, 2026 13:37
…s for permission checks

fix: add comments to clarify exception handling in getProposalsFromView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants