Skip to content

Conversation

@jennsun
Copy link
Contributor

@jennsun jennsun commented Dec 26, 2025

#254

user api experience:

app_sp = "app-sp-uuid"

client.grant_schema(
    grantee=app_sp,
    privileges=[SchemaPrivilege.USAGE, SchemaPrivilege.CREATE],
    schemas=["drizzle", "ai_chatbot", "public"],
)

client.grant_all_tables_in_schema(
    grantee=app_sp,
    privileges=[TablePrivilege.SELECT, TablePrivilege.INSERT, TablePrivilege.UPDATE],
    schemas=["drizzle", "ai_chatbot"],
)

client.grant_table(
    grantee=app_sp,
    privileges=[TablePrivilege.SELECT, TablePrivilege.INSERT, TablePrivilege.UPDATE],
    tables=[
        "public.checkpoint_migrations",
        "public.checkpoint_writes",
        "public.checkpoints",
        "public.checkpoint_blobs",
    ],
)

Confirmed permission granting works via SDK and then querying in lakebase what permissions are available:
image

@jennsun jennsun marked this pull request as ready for review January 2, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants