Zum Inhalt springen
HitKeep
Sprache wählen
Farbschema wählen
GitHub
Kostenlos in Cloud starten

HitKeep Roles and Site Permissions

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Access control over your analytics data should live on your infrastructure, not in a third-party identity cloud you don’t control. HitKeep’s role-based access control (RBAC) is enforced entirely on your instance, with granular roles at both the instance level and per site.

Instance roles apply across the entire HitKeep installation.

RolePermissions
ownerFull access: users, all sites, system settings, system status, maintenance actions, instance and site webhooks, and instance audit export
adminCan view all sites, use system status, run maintenance actions, view instance audit logs, manage instance and site webhooks, and manage IP exclusion rules through the dedicated exclusion controls. Admins cannot perform owner-only settings actions, export instance audit logs, change retention, or use other broad site data mutation endpoints unless they also hold a site role that grants those actions.
userAccess only to explicitly assigned sites

Change a user’s instance role (instance owner only) via:

The API refuses self-role changes with 400. Changes to another user cannot remove the last instance owner, including during concurrent updates; that conflict returns 409. Nonowners receive 403. These errors are plain text. An instance owner can still change another user’s role when the owner invariant is preserved.

An ordinary DELETE /api/admin/users/{id} is blocked if that user is the last owner of any team. Transfer team ownership first to keep those teams and their analytics.

Forced deletion is a separate destructive operation. First review the 409 user_owns_teams response: it lists the affected teams and sites and includes a consequence_hash and can_force. The confirmation must show every affected team and site. Proceed only when the review is complete, the hash is 64 lowercase hexadecimal characters, and can_force is true. Send only that reviewed hash as JSON to DELETE /api/admin/users/{id}?force=true:

{"consequence_hash":"<reviewed hash>"}

The body accepts only consequence_hash and is limited to 4 KiB. A nonempty malformed hash or an unknown JSON field returns 400.

A missing confirmation returns 409 delete_confirmation_required. Changed consequences return 409 delete_consequences_changed with a fresh review; review and confirm it manually before submitting again. Never automatically accept a new hash or retry destructive deletion. 409 delete_policy_blocked with can_force: false cannot be overridden. Missing or malformed review fields, including on an older server, must prevent forced deletion. The server rechecks the acting user’s authority and the last-instance-owner rule before any destructive change.

After a failed or ambiguous deletion, refresh the user, team, and site state before starting a new review; some changes may already have completed.

Self-service account deletion separately requires a consequence review, fresh same-user primary authentication and applicable MFA, then final confirmation. Shared teams survive; an explicitly selected, truly solo Cloud team can close only after its future renewals are stopped. Self-hosted users must hand over team ownership, and the last instance owner must hand over operator authority before deleting their account.

The administration sidebar separates operational status from instance configuration:

  • System Status shows runtime health, storage, ingestion volume, LRU cache status, backups, spam filter state, mail delivery status, maintenance actions, and instance audit logs.
  • System Settings keeps the configuration workflows for users, sites, teams, and global filters.

These entries are shown in the sidebar only for users with the matching instance role. See System Status and Settings for the full operator reference.

Site roles are scoped per user, per site. A user can be a viewer on one site and an owner on another.

RoleWhat they can do
ownerFull site access: data, goals, funnels, chart annotations, webhooks, team, retention settings, stats reset, site deletion, and site-level IP exclusions
adminManage data controls, site-level IP exclusions, goals, funnels, chart annotations, webhooks, and team members
editorCreate and edit goals, funnels, and chart annotations
viewerRead-only access to dashboard and analytics, including reading chart annotations

Site-level IP exclusions are managed by site owner and admin roles through the normal site data-control permission. Instance admin users have a separate, narrow override for exclusion rules only, so they can remove operational noise without inheriting retention or ingestion mutation rights.

Resetting site stats and deleting a site require the site owner role, or an instance owner role. The stats reset flow is dashboard-session only. API client bearer tokens cannot use it.

Chart annotations are shared by everyone with access to the site:

  • users and API clients with site.view read every note on the site
  • site.manage_annotations, held by the site owner, admin, and editor roles and by instance owners, adds notes and edits or deletes any note on the site, including notes a teammate wrote
  • instance admin users can read notes but not change them unless they also hold a site role that grants it

Saved Opportunity Recommendations follow the same split:

  • users with site.view can read saved Opportunities for the site
  • users with site.manage_data can generate or regenerate Opportunities, save them, dismiss them, or mark them done
  • instance owners and admins configure the optional AI provider at the runtime level, not from a site page

When you add site access for someone who is already in the site’s team, HitKeep grants or updates the site role directly. When the person is not in the team yet, HitKeep sends an invitation email and stages the requested site role. The role becomes effective after the recipient accepts the team invite.

Existing users sign in through the normal login flow before accepting the invite. When Google, GitHub, Microsoft, or Apple is configured, the invitation page can carry the one-time invitation through that provider flow and preserves the role requested by the invitation. New placeholder users can still set a password for the invited email address. No admin approval flow is required after acceptance.

For CI pipelines, integrations, or automated dashboards, use API Clients instead of sharing user credentials. API client tokens are bearer tokens that can be revoked individually without affecting any other user or session.

API clients govern manual MCP access and AI fetch ingest. OAuth-capable MCP clients can instead request sites:read analytics:read with explicit consent for the MCP resource and selected sites; current site.view authority remains required. AI fetch forwarders use API-client tokens with site.manage_data for the site they write crawler records into.

Team owners and admins with team.manage_api_clients manage public PKCE registrations at Integration → OAuth clients. Registration creates a public client ID and exact HTTPS callbacks, not a site grant or client secret. Each user approves their own OAuth access, and edits or revocation invalidate existing grants. See OAuth client administration.

Webhook configuration is intentionally excluded from API-client delegation. A human instance owner or administrator manages instance webhooks; a site owner or administrator manages that site’s webhooks. See signed webhook permissions, verification, and delivery behavior.

MCP clients can read saved Opportunities when their scoped credential and current authority permit viewing the site. They cannot generate Opportunities or mutate status through MCP.

HitKeep Cloud adds managed user provisioning with tenant-aware isolation and a hosted login flow, while keeping your analytics portable. Start with HitKeep Cloud →