Roles and permissions
Grant only the LakeShark capabilities a user or service account needs.
LakeShark authorization operates at two boundaries: organization administration and workspace product access. A user can be an administrator in one workspace and a read-only member in another.
Create a workspace role
Open Access → Roles in the LakeShark console. Choose an existing template and then review its individual permissions.
- Enter a stable role name, for example
support_answers_editor. - Pick a starting template such as AnswerSet editor.
- Enable or remove individual capabilities under the appropriate product.
- Save the custom role.
- Assign it to a workspace member or service account under Access.
Only scope values you already hold may be delegated. Built-in roles cannot be modified. Custom roles can be edited by an authorized workspace role administrator.
Product permissions
| Area | Read/view | Change/administer | Special permission |
|---|---|---|---|
| AnswerSets and Knowledge | answers.read |
answers.write |
AnswerSet Question Keys remain separately scoped |
| GovernanceSets | governance.read |
governance.write |
Assigning to an AnswerSet also needs answers.write |
| HTTP ExecutionSets | executions.read |
executions.write |
Explicit invocation requires executions.evaluate; connecting an action also requires AnswerSet permissions. Bound Question Keys can dispatch preapproved Automatic connections without this general scope. |
| Dashboards | dashboards.read |
dashboards.write |
Dashboard definitions do not grant raw Scorecard writes |
| Providers | providers.read |
providers.write |
Provider-assisted generation also requires relevant product write |
| ConfigStore settings | config.read |
config.write |
Does not authorize AnswerSet administration |
| Scorecards / Results | scorecards.read |
scorecards.write |
Does not authorize Dashboard management |
Workspace administration
| Permission | Controls |
|---|---|
workspace.manage |
Workspace metadata and lifecycle |
workspace.members.manage |
Member assignments |
workspace.roles.manage |
Custom role administration |
workspace.service_accounts.manage |
Service accounts, credentials and role grants |
workspace.audit.read |
Workspace audit events |
Organization membership management, workspace creation and organization audit remain organization-level permissions. They cannot be granted in a workspace role.
Ready-to-use role patterns
| Role | Recommended permissions |
|---|---|
| AnswerSet editor | answers.read, answers.write, providers.read |
| Governance administrator | governance.read, governance.write, answers.read, answers.write |
| Dashboard analyst | dashboards.read, scorecards.read |
| Read-only reviewer | Read scopes for only the products required |
A role with answers.write does not automatically gain governance.write. These permissions remain independently enforced.
API management
The public management endpoints use the same canonical names displayed in the console.
POST /v1/workspace/roles
PATCH /v1/workspace/roles/{role_id}
Example payload for an AnswerSet editing role:
{
"name": "support_answers_editor",
"description": "Can maintain approved Knowledge and AnswerSet configuration.",
"scopes": ["answers.read", "answers.write", "providers.read"]
}
The caller requires workspace.roles.manage and cannot create a role with permissions it does not possess. Role changes are audited, and updated scopes take effect in newly issued or refreshed access tokens.
Existing roles and upgrades
The product-granular authorization release upgrades built-in roles and idempotently expands existing custom roles according to the product capabilities their old scopes already allowed. This preserves historic permissions instead of silently locking out customers. Review custom roles after the rollout and remove capabilities you no longer want to delegate.
A newly created role does not inherit those compatibility grants. Its exact scope selection determines access.
Legacy permissions: Existing roles may still contain executions.read, executions.evaluate, or executions.write for older API integrations. The customer role editor no longer offers new ExecutionSets role templates and preserves existing unmanaged scopes during ordinary role edits. Review and retire legacy grants deliberately through authorized administrative APIs after affected bindings are migrated. Hidden navigation does not remove backend authorization or runtime effects.
Security boundaries
- Permissions are enforced by each backend API. Hiding a navigation item is not a security boundary.
- Organization/workspace identity comes from the verified bearer token, not caller-selected headers.
- A workspace administrator cannot grant scopes outside their own authorization.
- Service accounts should have focused roles rather than using a human owner token.
- Provider secrets and Question Keys are separate credentials and do not belong in role definitions.