Add/Edit a users permissions for associated affiliation(s)

Description

Purpose: If users are able to have multiple affiliations there must be a way to review all the affiliations a particular user has and adjust the permissions associated with that affiliation. 

User story statement(s):

As a system administrator,
I want to edit a users affiliations and permissions for each affiliation
so that I can more efficiently and effectively manage users and troubleshoot issues with permissions

Scenarios:

  1. Affiliations select list displayed:

    • Given user with appropriate permissions

    • When editing another user record that has MORE than 1 affiliation

    • Then Affiliations select list is displayed in User permissions accordion

  2. Display current permissions for affiliation:

    • Given Affiliations select list is displayed in User permissions accordion

    • When selecting an affiliation

    • Then all of the users permissions for that affiliation are displayed

  3. Editing users permissions actions:

    • Given user has more than one affiliation

    • When selecting an affiliation in the dropdown

    • Then "Add permission" and "Unassign all permissions" are displayed as active for affiliation(s) with assigned permission(s)

    • And "Add permission" is displayed as active and "Unassign all permissions" is displayed as inactive for affiliation(s) with no assigned permissions

  4. Chaning users permissions:

    • Given user with appropriate permissions selects a affiliation in dropdown

    • When user click "Add permissions"

    • Then ui-plugin-permissions is displayed with all possible permissions for that affiliation

    • AND user is able to select or unselect permissions from the results.

  5. Saving changes to users permissions:

    • Given user has selected or unselected permissions from the results in the plugin.

    • When clicking save

    • Then changes are shown below the affiliations dropdown list

  6. Saving changes to users permissions:

    • Given changes are shown below the affiliations dropdown list

    • When clicking save and close

    • Then changes are saved for that affiliation for that user record

Environment

None

Potential Workaround

None

Attachments

7

Checklist

hide

TestRail: Results

Activity

Show:

Joseph ReimersJune 1, 2023 at 5:24 PM

Reviewed with . Works as expected.

NinaChistovaMay 26, 2023 at 1:07 PM

Tested on https://folio-dev-consortia-mobius.ci.folio.org/

Works as expected, please see attached  screencasts

could you please review? Thank you in advance!

Yury SaukouMay 22, 2023 at 6:27 AM

Dennis BridgesFebruary 21, 2023 at 3:34 PM

Note: we will need to check interface availability for the consortia specific UI components to be displayed. Ie. if the tenant is part of consortia then consortia feature elements display in UI. If not then consortia UI components do not display. These may actually be separate UI bundles, meaning the interface availability triggers one UI version to display for regular and a different one for consortia participants.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 17, 2023 at 4:01 PM
Updated October 13, 2023 at 8:56 AM
Resolved June 1, 2023 at 5:24 PM
TestRail: Cases
TestRail: Runs