User with permission "Settings (eHoldings): Can assign/unassign a user from a KB" can't assign users to KB credentials

Description

Overview: User with permission "Settings (eHoldings): Can assign/unassign a user from a KB" can't assign users to KB credentials
Steps to Reproduce:

  1. Log into Snapshot FOLIO environment as User with at least the following permission:
    eHoldings: Can view providers, packages, titles detail records
    Settings (eHoldings): Can assign/unassign a user from a KB

  2. Navigate to "Settings >> eHoldings >> Assigned Users"

  3. Click on the "Assign users" button.

  4. Find and select any user in the displayed pop-up modal.

Expected Results: The selected user assigned to KB credentials. User is displaying in the list at "Assigned Users" pane.
Actual Results: The error "Unable to complete this operation. Please try again." is displaying. "500" error is displaying at "DevTools>>Network".
Additional Information: See attached screencast.
This issue isn't reproducing with admin user permissions (admin_diku / admin).
Interested parties:  

Approach:

  • Add "users.item.get" permission to POST "/eholdings/kb-credentials/<credentialsId>/users" endpoint modulePermissions

  • Add "users.collection.get" and "usergroups.collection.get" permissions to GET "/eholdings/kb-credentials/<credentialsId>/users" enpoint modulePermissions

  • Remove PUT "/eholdings/kb-credentials/<credentialsId>/users/<userId>" enpoint from module description
     
     
     

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Release

Morning Glory (R2 2022)

RCA Group

Missing module permission

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created July 4, 2022 at 2:20 PM
Updated January 10, 2023 at 12:46 PM
Resolved July 7, 2022 at 1:04 PM
TestRail: Cases
TestRail: Runs