Groups, Projects, and RBAC
Some Kumo deployments enable role-based access control (RBAC). In those workspaces, SDK operations run inside a group and, for model-building objects, a project. Groups are typically managed by administrators. Projects define a boundary for tables, graphs, predictive queries, training jobs, and related assets.
RBAC APIs are only available when RBAC is enabled for your workspace. If RBAC is disabled, these helpers raise FeatureNotEnabledError and SDK objects are not scoped by group or project.
Initialize with a group and project
The easiest way to work in an RBAC-enabled workspace is to pass group and project to kumo.init().
group and project may be either names or IDs.
If you belong to exactly one group, the SDK selects it automatically when RBAC is enabled.
If multiple groups are available, pass group= to kumo.init() or call set_group() before selecting a project.
Discover groups and projects
Use list_groups() to view the groups available to you.
After selecting a group, use list_projects() to view its projects.
Changing the active group clears the active project because projects belong to a specific group.
Create a project
Create a project inside the current group with create_project().
is_private=False makes the project visible to all group members.
is_private=True restricts visibility to the creator only, subject to workspace policy.
Use administrator-managed group connectors
In RBAC-enabled workspaces, group connectors are the only supported connector type. Administrators publish these shared connectors so users can read source tables without requiring direct access to connection credentials.
A GroupConnector behaves like other SDK connectors: use table() or indexing to obtain a SourceTable, then build Kumo Table objects from it.
Error handling
The SDK exposes RBAC-specific exceptions so callers can handle RBAC errors explicitly.
Common causes:
FeatureNotEnabledError: RBAC is not enabled for this workspace, orRBAC_ENABLED=falsewas set to opt out.GroupNotSetError: The SDK needs a group context. Passgroup=tokumo.init()or callkumo.set_group().ProjectNotSetError: The SDK needs a project context. Passproject=tokumo.init()or callkumo.set_project()after selecting a group.
Environment override
By default, the SDK detects RBAC support from the Kumo service.
The RBAC_ENABLED environment variable can override that detection, which is useful for migration scripts and testing:
Use this override carefully; most users should rely on server-side detection.
Recommended workflow
- Initialize with
group=andproject=whenever possible. - Use
list_group_connectors()instead of embedding warehouse credentials in notebooks. - Create separate projects for separate modeling efforts, experiments, or production assets.
- Avoid switching groups halfway through a notebook unless you also intentionally select a new project.