Managing databricks workspace permissions

Learnit
New Contributor II

I need assistance with writing API/Python code to manage a Databricks workspace permissions database(unity catalog). The task involves obtaining a list of workspace details from the account console, which includes various details like Workspace name, Id, user Permission Type, Service principal permissions and their list for the workspaces etc. I'm looking for efficient methods for data insertion, updating, and querying within this database. Any advice or code examples relevant to this context would be greatly appreciated.

Thanks,

mark_ott
Databricks Employee
Databricks Employee

Here's a start.  

https://docs.databricks.com/api/workspace/workspacebindings/updatebindings

As far as coding, I use CURL.  See attachment as to the syntax.  Note the example in the attachment is for Workspace notebooks, as opposed to Workspace environments which you are interested.