Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 05:29 AM
Hi @rai00,
Ensure that the mock user me@example.com has the necessary privileges at both the catalog and schema levels. The user needs specific privileges such as USE_SCHEMA and CREATE_VOLUME
Use the WorkspaceClient to check the effective privileges for the user.
permissions = ws.grants.get_effective(SecurableType.SCHEMA, "remorph", principal="me@example.com")
user_privileges = [p.privilege for p in chain.from_iterable(privilege.privileges for privilege in permissions.privilege_assignments if privilege.privileges)]
print(user_privileges)