Skip to main content
Version: v3.0.0

Control workspace access

Access levels on a workspace control who can see the workspace, and the permission scope controls whether the feature sets inside it are visible too. For the roles a user can hold, see Permission levels.

Access levels

from h2o_featurestore import WorkspaceAccessLevel

# Visible to all users on the platform
workspace.set_access_level(WorkspaceAccessLevel.PUBLIC)

# Restricted to users with explicit access
workspace.set_access_level(WorkspaceAccessLevel.PRIVATE)

# Plain strings are also accepted
workspace.set_access_level("PUBLIC")
workspace.set_access_level("PRIVATE")

# Check the current level
print(workspace.access_level)
# "WORKSPACE_ACCESS_LEVEL_PUBLIC" or "WORKSPACE_ACCESS_LEVEL_PRIVATE"
ValueDescription
WorkspaceAccessLevel.PUBLICVisible to all users on the platform.
WorkspaceAccessLevel.PRIVATERestricted to users with explicit access.

Permission scope

When a workspace is PUBLIC, the permission scope controls whether the feature sets inside it are also visible.

from h2o_featurestore import WorkspaceAccessLevel, WorkspacePermissionScope

# Public workspace — feature sets are visible to everyone
workspace.set_access_level(
WorkspaceAccessLevel.PUBLIC,
permission_scope=WorkspacePermissionScope.FEATURE_SET,
)

# Public workspace — only the workspace is visible, not the feature sets inside it
workspace.set_access_level(
WorkspaceAccessLevel.PUBLIC,
permission_scope=WorkspacePermissionScope.WORKSPACE_ONLY,
)

# Check the current scope
print(workspace.permission_scope)
# WorkspacePermissionScope.FEATURE_SET or WorkspacePermissionScope.WORKSPACE_ONLY
ValueDescription
WorkspacePermissionScope.FEATURE_SETFeature sets are visible to anyone who can see the workspace.
WorkspacePermissionScope.WORKSPACE_ONLYThe workspace is visible, but feature sets inside it require separate access.

Feedback