You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Howdy bricksters. I notice when I call grants.get_effective() for a UC securable with the BROWSE privilege granted to some user/group, that privilege shows up with privilege=None.
In the logging, I see that UC's get_effective_permissions API (truly, an excellent API, IMHO....) gives the right output:
# Configure `main` catalog to have `BROWSE` privilege for some user/group
from pprint import pprint
from databricks.sdk import WorkspaceClient
w = WorkspaceClient(...)
grants = w.grants.get_effective(securable_type=catalog.SecurableType.CATALOG, full_name="main")
pprint(grants)
Expected behavior
I expect all EffectivePrivilege objects to have a non-None value for privilege, such as privilege=<Privilege.SELECT: 'SELECT'>.
Is it a regression?
I don't know. I tried v0.35.0 as well as the latest (v0.44.1) and saw the same misbehavior.
Debug Logs
See above.
Other Information
OS: macOS
Version: 14.7.3 (Sonoma)
Additional context
None
The text was updated successfully, but these errors were encountered:
Description
Howdy bricksters. I notice when I call
grants.get_effective()
for a UC securable with theBROWSE
privilege granted to some user/group, that privilege shows up withprivilege=None
.In the logging, I see that UC's
get_effective_permissions
API (truly, an excellent API, IMHO....) gives the right output:But it looks like the SDK doesn't translate that BROWSE permission properly:
Reproduction
Expected behavior
I expect all
EffectivePrivilege
objects to have a non-None value forprivilege
, such asprivilege=<Privilege.SELECT: 'SELECT'>
.Is it a regression?
I don't know. I tried v0.35.0 as well as the latest (v0.44.1) and saw the same misbehavior.
Debug Logs
See above.
Other Information
Additional context
None
The text was updated successfully, but these errors were encountered: