Modifying the display of the members widget

I’d like to display a list of the community on the public (in that logged-in members can view it) members page. However, I only want to display members that have a certain role or certain badge.

Neither of the existing members widgets can do what I need, so is there a way to either:

  1. Modify one of the current members widgets, or
  2. Automatically pull data from members with a certain badge/role into a CMS database, from which I can then build a repeater?

I have no issues building the repeater, but I don’t know how to access the member data and push it into a CMS database.

I guess an alternative route could be to create a secondary custom login form which is linked both to the members area and a database (the secondary login form is treated like a form and not something else entirely)?

I can do it on mine in Studio

Then click on All members next to the field name then it shows the member roles option