Added support for import and export of Table ACLs. (Access Control Li…#35
Conversation
…sts)
This is an experimental version see below:
New class TableACLsClient.py coordinates the
import and export of table ACLS to and from a JSON format.
The actual import and export logic is implemented in two notebooks:
../data/notebooks/Export_Table_ACLs.py
../data/notebooks/Import_Table_ACLs.py
The actual import export logic in the notebooks needs more testing
especially around changing ownership and Functions.
But it should work for Databases, Tables and Views.
|
|
||
| #dbutils.widgets.removeAll() | ||
| dbutils.widgets.text("Databases","tomi_schumacher_adl_test, tomi_schumacher_adl_test_restricted","1: Databases (opt)") | ||
| dbutils.widgets.text("OutputPath","dbfs:/tmp/migrate/tomi_table_acl_perms.json.gz","2: Output Path") |
There was a problem hiding this comment.
Similar feedback here, let's remove tomi from the file name.
mrchristine
left a comment
There was a problem hiding this comment.
Overall looks good to me, we need to sanitize some of the parameters and other code blocks to make the code generic.
cleaned up notebooks and improved documentation in the notebooks
|
I removed any mentions of my name or email address in examples in side notebooks or in the code. Let's discuss the sanitization of code blocks and parameters. I had some things in mind: E.g. making some of the methods to copy from and to DBFS and Workspace and |
mrchristine
left a comment
There was a problem hiding this comment.
Looks good to me. Great first commit for this feature.
Update HMS_Modification_Get_Database.py
This is an experimental version see below:
New class TableACLsClient.py coordinates the
import and export of table ACLS to and from a JSON format.
The actual import and export logic is implemented in two notebooks:
../data/notebooks/Export_Table_ACLs.py
../data/notebooks/Import_Table_ACLs.py
The actual import export logic in the notebooks needs more testing
especially around changing ownership and Functions.
But it should work for Databases, Tables and Views.