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"
| Value | Description |
|---|---|
WorkspaceAccessLevel.PUBLIC | Visible to all users on the platform. |
WorkspaceAccessLevel.PRIVATE | Restricted 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
| Value | Description |
|---|---|
WorkspacePermissionScope.FEATURE_SET | Feature sets are visible to anyone who can see the workspace. |
WorkspacePermissionScope.WORKSPACE_ONLY | The workspace is visible, but feature sets inside it require separate access. |
Feedback
- Submit and view feedback for this page
- Send feedback about H2O Feature Store to cloud-feedback@h2o.ai