I am have been searching for a few days now but have been unable to find a method of exporting a list of course or account roles and there assigned permissions. I have been tasked with analyzing this data to make sure users have the correct access. Any help would be greatly appreciated.
You can get the roles and the permissions assigned to each role from: https://instance.instructure.com/api/v1/accounts/self/roles
The documentation for this is on: https://canvas.instructure.com/doc/api/roles.html#method.role_overrides.api_index
If you have lots of roles you will need to page through the results as documented on:
To work out what users have access to what accounts/courses I'd use the provisioning report that can be run from the Reports tab: https://community.canvaslms.com/t5/Admin-Guide/How-do-I-view-reports-for-an-account/ta-p/109 These reports can also be run through the API if you want to automate the whole process: https://canvas.instructure.com/doc/api/account_reports.html