|
148 | 148 | # MAGIC %md |
149 | 149 | # MAGIC #### Adhoc Step: Selective Inventory |
150 | 150 | # MAGIC This is a adhoc step for troubleshooting purpose. Once dryRun is complete and data stored in tables, if the acl of any object is changed in the workspace |
151 | | -<<<<<<< Updated upstream |
152 | | -# MAGIC Ex new notebook permission added, User can force a fresh inventory of the selected object instead of doing a full cleanup and dryRun to save time |
153 | | -# MAGIC Call gm.performInventory with 3 parameters: |
154 | | -# MAGIC - mode: Workpace("workspace local group") or Account ("for workspace back up group") |
155 | | -# MAGIC - force: setting to True will force fresh inventory capture and updates to the tables |
156 | | -# MAGIC - objectType: select the list of object for which to do the fresh inventory, options are |
157 | | -# MAGIC |
158 | | -======= |
159 | 151 | # MAGIC Ex new notebook permission added, User can force a fresh inventory of the selected object instead of doing a full cleanup and running the dryRun |
160 | 152 | # MAGIC To save time call gm.performInventory with 3 parameters: |
161 | 153 | # MAGIC - mode: Workpace("for workspace local group") or Account ("for workspace back up group") |
162 | | -# MAGIC - force: setting to True will force fresh inventory capture and updates to the tables |
163 | | -# MAGIC - objectType: select the list of object for which to do the fresh inventory, options are |
164 | | -# MAGIC |
165 | | ->>>>>>> Stashed changes |
| 154 | +# MAGIC - force: setting to True will force fresh inventory capture and updates to the tables |
| 155 | +# MAGIC - objectType: select the list of object for which to do the fresh inventory, options are |
| 156 | +# MAGIC |
166 | 157 | # MAGIC "Group"(will do members, group list, entitlement, roles), "Password","Cluster","ClusterPolicy","Warehouse","Dashboard","Query","Job","Folder"(Will do folders, notebook and files),"TableACL","Alert","Pool","Experiment","Model","DLT","Repo","Token","Secret" |
167 | 158 | # MAGIC Ex: gm.performInventory('Workspace',force=True,objectType='Cluster') will do: |
168 | 159 | # MAGIC - fresh inventory of all cluster objects and updated the data the inventory table |
169 | 160 | # MAGIC - run printInventory() to verify all the permission again (including clusters). |
170 | 161 |
|
171 | 162 | # COMMAND ---------- |
172 | 163 |
|
173 | | -<<<<<<< Updated upstream |
174 | | -gm.performInventory("Workspace", force=True, objectType="Folder") |
175 | | -======= |
176 | | -gm.performInventory('Workspace',force=True,objectType='Cluster') |
| 164 | +gm.performInventory("Workspace", force=True, objectType="Cluster") |
177 | 165 | gm.printInventory() |
178 | | ->>>>>>> Stashed changes |
179 | 166 |
|
180 | 167 | # COMMAND ---------- |
181 | 168 |
|
|
0 commit comments