The command assign-owner-group is not working.
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
When I run the command assign-owner-group, I get the following result:
06:25:01 INFO [d.l.u.workspace_access.groups] Found 4699 account groups 06:25:01 WARN [d.l.u.workspace_access.groups] No account groups found for the current user. 06:25:01 Info: completed execution pid=35304 exit_code=0
even though I am a member of many account groups. Also, when I add the line default_owner_group: my_account_group to the config.yml file, the owners of schemas/tables/views are not changed.
I think the problem is in the _list_account_groups method in the groups.py file. This method uses the endpoint GET /api/2.0/account/scim/v2/Groups?attributes=id,displayName,externalId,members which does not return members.
Expected Behavior
A list of account groups of which I am a member is returned.
Steps To Reproduce
databricks --debug labs ucx assign-owner-group -p adb-XXXXXXXXXXXXXXXX
Cloud
Azure
Operating System
Windows
Version
latest via Databricks CLI
Relevant log output
Can you provide more information. The CLI commands is looking for groups that the current user belong to. Otherwise the user will lose access after migration. If such group exists, please let us know.
Sorry for delay. Yes, I am a member of many account groups. Unfortunately, when I run databricks --debug labs ucx assign-owner-group -p adb-XXXXXXXXXXXXXXXX the list of account groups is empty. I also tried to force the use of a specific group by adding the following line to the config.yml file: default_owner_group: my_group but unfortunately, that didn't help.