Error toasts when opening a user for edit without having "User Roles" capability set
Description
CSP Request Details
CSP Rejection Details
Potential Workaround
Attachments
Checklist
hideActivity

Aidyn ZhakizhanovDecember 17, 2024 at 7:57 AM
I confirm, it is because of “UI-Users“ capabilities/sets are associated with an old “app-platform-complete“ version (1.0.0) instead of updated one.
Yauhen ViazauDecember 17, 2024 at 6:59 AM
Tested on Eureka BF
https://eureka-bugfest-ramsons-consortium.int.aws.folio.org/ - works as expected
https://eureka-bugfest-ramsons.int.aws.folio.org/ - issue is still active
:
The issue is still active on Eureka BF non-ECS. But “UI-Users“ capabilities/sets there are all associated with an old “app-platform-complete“ version (1.0.0).
See .
Can you confirm that we just don’t have the updated capability sets there due to , and therefore it is expected for the current issue to be still active there? If yes, we can close this ticket (fix is working on ECS where there are no issues with “UI-Users“ capabilities/sets)

JenkinsNotificationsDecember 16, 2024 at 4:50 PM
Deployed to the Ramsons bf env. Moved status to In bugfix review from status Awaiting deployment. Please proceed with the verification.

Ryan BergerDecember 12, 2024 at 7:31 PM
In discussing with this morning, I think this issue is out of scope for since the permissions check happens in ui-users code.
Yauhen ViazauDecember 12, 2024 at 2:34 PM
Tested on https://folio-etesting-snapshot-diku.ci.folio.org/ - issue is not reproducible
See example:
Notes:
With the current setup, a user with “Data - UI-Users - Edit/Create“ capability sets can assign and unassign roles when editing a user.
, , - I think it might conflict with .
Details
Assignee
Aidyn ZhakizhanovAidyn ZhakizhanovReporter
Yauhen ViazauYauhen ViazauPriority
P2Story Points
1Sprint
NoneDevelopment Team
EurekaFix versions
Release
Ramsons (R2 2024) Bug FixRCA Group
Missing module permissionTestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee

Steps to reproduce:
Log in into etesting-snapshot (https://folio-etesting-snapshot-diku.ci.folio.org/) as a user having these capability sets assigned:
Data - UI-Users - View
Data - UI-Users - Edit
Go to “Users“ app
Open any user
Click on “Actions” button in the third pane → Select “Edit” option
Expected result: “Edit“ pane is opened. No error notifications shown.
Actual result: “Edit“ pane is opened. Two error toast notifications shown with the same text “Something went wrong. Please try again later.“. In DevTools,
GET /roles
,GET /roles/users
calls fail with 403 status and the following response bodies:Additional information:
Having “Data - Roles Users - Manage“ capability set resolves the issue.
The same behavior when creating a user with the following minimal capability sets:
Data - UI-Users - View
Data - UI-Users - Create
See examples: