Get User By Role

Roles have a badge in the backend so you can use badge.listMembers to do what you are asking: