Totara Learn Open Discussions

Prevent User Details from Showing up in User Reports

 
Justin Slabbekoorn
Prevent User Details from Showing up in User Reports
by Justin Slabbekoorn - Wednesday, 2 April 2025, 2:04 AM
 

Good morning,

We currently have a group of students at our company who will be analyzing data using reports generated by Totara. They need the ability to create and experiment with different report settings, but I want to ensure they can only view the User ID as an identifier to link data across different reports.

However, they should not be able to see the following user details:

  • User's Full Name

  • User First Name

  • User Last Name

  • User ID Number

  • User's Email

For the email field, I successfully configured the report to display "Email is private" instead of the actual address. I’d like to achieve a similar result for the other restricted fields.

What I’ve tried so far:

I created a system role with the following permission:

  • totara/reportbuilder:managereports

I then prohibited these capabilities:

  • moodle/user:viewalldetails

  • moodle/user:viewhiddendetails

  • moodle/user:viewdetails

  • moodle/site:viewfullnames

  • moodle/site:viewuseridentity

The issue:

Despite these restrictions, Report Builder still displays all the restricted user information in the reports. It seems to ignore the permission settings.

Is there a way to enforce these restrictions so only the User ID is visible?

Any help or guidance would be greatly appreciated!

Best regards,

Justin