Docs / Administration

Team and roles

Invite workspace users, assign owner or member access, and remove access when needed.

Overview

Workspace users have one of two roles:

  • Owners manage settings, credentials, API keys, invitations, sources, routing, sinks, and destinations.
  • Members read community data and make review decisions, merges, tags, and segments.

Only owners can access the workspace user list in the app. REST and MCP also expose this list with read scope. Datum has no custom roles or single sign-on.

Connected agents use the connecting person’s permissions. Datum checks the person’s current membership and role on every request.

Configure

Sign-in methods

Datum uses no passwords. Email me a link sends a single-use link that expires after 15 minutes.

Without email configuration, a self-hosted instance prints the sign-in link in the app’s log instead, under a banner that starts ocmgr sign-in link for and the address. To find it:

docker compose -f deploy/docker-compose.yml logs app | grep -A3 'ocmgr sign-in link'

The link signs in whoever holds it. Share it only privately.

Configured providers add Continue with GitHub and Continue with Slack. Self-hosted installations require provider OAuth apps. See Configuration.

“This instance has no sign-in configured” indicates a missing sign-in secret. API keys still work. Install with Docker includes sign-in setup.

The first owner

Create the first owner on a self-hosted instance with ocmgr admin user create. Invite later users through the app or the operator CLI.

Basics

Invite someone

  1. Open Members

    Open Settings → Members as an owner. Other users see “Only an owner of this workspace can see who else is in it or invite anybody.”

  2. Send the invitation

    1. Enter the address under Invite by email.
    2. Select Member or Owner under As.
    3. Select Send invitation.
  3. Accept the invitation

    Open the invitation link as the recipient. Sign in with the invited address. Select Join for the named workspace and role.

    An invitation expires two days after you send it. For a new invitation, cancel the old one. Then invite the address again.

    When the instance cannot send email, no email goes out. The app shows No email was sent to the address, with the link. Select Copy invitation link. Then give the link privately to the recipient.The link appears only one time, to the owner who sent the invitation. Datum does not write it to the server log, and the list of pending invitations does not show it. If you lose it, cancel the invitation and send a new one.

  4. Check membership

    Check the workspace member list. Pending invitations appear under Invited, not yet signed in, with their expiry dates, two days after sending. Accepted invitations show the user’s role and join date.

Select Cancel beside a pending invitation to withdraw it.

Remove someone

  1. Select Remove beside the user’s address.
  2. Confirm the removal.

The user and their agents immediately lose workspace access. Their previous work remains. You can invite them again.

The list prevents you from removing yourself. This helps prevent accidental removal of the last owner.

Change someone’s role

Remove the user. Invite them again with the required role. The app has no control to change a role directly. An instance operator can use ocmgr admin user role from the terminal.

Someone signed in but sees nothing

Users without workspace membership see their sign-in address and a message that they have no workspace.

Invite that exact address from Settings → Members. Ask the user to select Check again.

From your terminal

Read users, roles, and pending invitations with read scope:

ocmgr admin user list --json

See Workspace access to list and disconnect agents through REST, MCP, or the CLI.

Operators with database access can manage workspace access from the terminal. Recipients still accept invitations through browser sign-in. Access changes require the operator terminal or a signed-in session. API keys and hosted agents cannot grant access. You can list users from the CLI, MCP, REST and the web app.

The first owner requires this command on the instance host:

ocmgr admin user create --email [email protected] --workspace <workspaceId> --json

The command returns signInUrl. It also sends email when configured. Anyone with the link can sign in. Share it through a private channel.

ocmgr admin user invite --email [email protected] --role member --json
ocmgr admin user cancel-invite <invitationId> --json
ocmgr admin user role --email [email protected] --role owner --json
ocmgr admin user remove --email [email protected] --json

Select the workspace with --workspace <workspaceId> or OCMGR_WORKSPACE. Use --dry-run to check a change without saving it or sending email. Invitations expire after two days. If email is unavailable, the result includes inviteUrl to share privately. An existing owner sponsors the invitation; History records the actor as terminal.

Creating an owner, inviting, cancelling, removing and changing a role all write to History. The commands refuse to remove or demote the last owner. Repeating admin user create keeps an existing user’s role and produces a new sign-in link.

FAQ

Can a workspace have more than one owner?

Yes. Select Owner when inviting another user. Multiple owners can maintain access to settings and keys if one person becomes unavailable.

What happens to someone's work when I remove them?

Merges, review decisions, notes, and tags remain with their author records. History continues to identify who made each change.

Can members connect an agent?

Yes. The agent receives the member’s permissions. Settings → Access → Agents & connectors lists agents and their connecting users.

Users can disconnect their agents. Owners can disconnect any agent. Removing a user also stops their agents. See Workspace access for REST, MCP, and CLI examples.

Do invitations work without email?

Yes. When email is not configured, or sending fails, the app shows the invitation link one time to the owner who sent it. The owner gives the link privately to the recipient. The recipient still has to sign in with the invited address. Without email, that means Continue with GitHub or Continue with Slack, or a sign-in link from the server log on a self-hosted instance. See Configuration.

How long does an invitation last?

Two days. Invited, not yet signed in shows each invitation’s expiry date. After that, the link no longer works: cancel the invitation and invite the address again.