The User Provisioning API (Accounts Dashboard | HubSpot) can let us view Users, Teams, and Roles - but there is no endpoint to see the permissions associated with each role, nor can we see the association between the nested teams.
A few other articles exist on viewing the permissions here and here, and these have been marked “solved” with the resolution that the user should maintain the roles/permissions associations externally.
In my current scenario, we are setting up some integrated and automated means of user access reviews following POLP, the external maintenance solution is not acceptable. Any user with correct privilage could change HubSpot permissions without modifying the external reference, and there’s too much room for manual error in having someone copy over the permissions to a secondary document.