Include custom role name for group/project members in user exports
What does this MR do and why?
It adds custom role name to project and group members to users who have the custom role assigned for csv exports (accessible from admin - users and group - members pages).
This is visible eg. on admin page or on user permissions exports.
The format custom role name (Custom Role)
was agreed in #461140 (comment 1921348306)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
View | Before | After |
---|---|---|
Users export | admin-export-before.csv | admin_export_after.csv |
How to set up and validate locally
- Make sure you have at least one user with a custom role - you can create a custom role in Admin - Settings - Roles and Permissions when on self-managed, assign it to a user on group members page
- Go to admin area - users and export the users
- Check that user(s) with custom role assigned have that custom role displayed in the export, the format should be "CUSTOM ROLE NAME (Custom Role)", eg. "Incident Manager (Custom Role)
- You can verify the same is happening for group members export
Related to #461140 (closed)
Edited by Jarka Košanová