1. Categorizing User Roles
Background
A developer has a list of users and their roles and needs to generate a list of users per role for a dashboard.
Problem
The current data is structured as {user: role}, but the UI requires {role: [users]}.
How to use
Input the user-role object and run the tool to invert the mapping.
{"Alice":"Admin", "Bob":"Editor", "Charlie":"Admin"}Outcome
{"Admin":["Alice","Charlie"], "Editor":["Bob"]}