Skip to content

Replace local access levels with explicit permission object - #1104

Open
rBangay wants to merge 1 commit into
rb/remove-legacy-access-managementfrom
rb/removeUserAccessLevel
Open

rBangay wants to merge 1 commit into
rb/remove-legacy-access-managementfrom
rb/removeUserAccessLevel

Conversation

@rBangay

@rBangay rBangay commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

What does this change?

Removes the legacy access level numeric value and replaces it with an explicit object that defines what access a user has.

@rBangay
rBangay added this pull request to stack #1105 November 27, 2026 12:48
@rBangay rBangay added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Nov 27, 2026
@rBangay rBangay linked an issue Nov 27, 2026 that may be closed by this pull request
@rBangay rBangay changed the title Replace local access levels with explicit permissions json object Replace local access levels with explicit permission object Nov 27, 2026

@bendudiak-fry bendudiak-fry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

export const getLocalUserProfiles = (): Record<string, UserAccessLevel> => {
export const getLocalUserPermissions = (): Map<string, UserPermissions> => {
const json = process.env.USER_PERMISSIONS;
const output = new Map<string, UserPermissions>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason to convert to a map here over keeping it a record of email -> permissons?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Legacy SSM Parameter Permissions store from newsletters tool

2 participants