Retrieve list of all projects, all user groups for projects, and who is a member within each group in SonarQube

Job ID: 31151068

Budget: $30 – $250 USD

I am looking to create a script that will provide me with a list of projects in SonarQube 8.9 (Enterprise versionn). I need a list of user groups associated with each project (Administrators or Admins, Developers, Users), and users associated with those groups.
I started working on a script, but am having trouble with piecing it together.
I can answer any further questions but have attached a script I started working on. You can see I was trying a few different things.
Related categories: Shell Script JSON API