viakite
Dashboard

Guides/Team/Roles and groups

Roles and groups

Who can see and change what

Access in Viakite is built from three pieces. A permission is one action, such as analytics.view. A role is a named set of permissions. A group is a set of members, such as "Mobile team", that gets roles of its own. A member can do everything granted to them directly and through their groups. Custom roles and groups are free on every plan.

Built-in roles

Every organization has five roles that can't be edited. Use one as is, or copy it as the start of a custom role.

RoleCan
OwnerEverything, including deleting the organization and changing owners
AdminEverything except deleting the organization, changing owners and billing
MemberUse every product in its scope (view, manage goals, funnels and alerts, export, share), see members and keys; no organization settings
ViewerView only: product data, alerts and members
BillingPlan, invoices, payment methods, spend caps and usage, and see members; no product data

An organization always has at least one owner. Only an owner can make someone an owner or take it away, and the owner role can't be given to a group.

Custom roles

  1. Open Settings → Roles

    Built-in roles are listed first, then Custom roles. You need roles.manage to create or change one.

  2. Start a role

    Create a new one, or open a built-in role and choose Copy into a new role to start from its permissions.

  3. Pick the permissions

    Give it a name (up to 60 characters), an optional description, and tick the permissions it grants, grouped by area.

  4. Give it to people

    Assign it to members in Settings → Members, or to a group.

A role that someone still has can't be deleted (role_in_use); take it away from them first.

POST/v1/orgs/{org}/roles
terminal
1curl -X POST https://api.vk.viabio.me/v1/orgs/org_…/roles \
2 -H "Authorization: Bearer sk_live_us_…" \
3 -H "Content-Type: application/json" \
4 -d '{"name": "Analyst", "permissions": ["analytics.view", "analytics.export"]}'

Groups

A group gives the same roles to a team at once: everyone in it gets its roles. In Settings → Groups, create a group, give it roles, and choose its members. Deleting a group takes its roles away from its members; the roles given to them directly stay. Creating and changing groups needs roles.manage; choosing who is in a group needs members.roles.

POST/v1/orgs/{org}/groups PUT/v1/orgs/{org}/groups/{group}/members

Organization or chosen projects

Every grant has a scope: the whole organization, or chosen projects. In the API a grant is a role with optional project_ids; leave them out for the whole organization.

grant.json
1{ "role": "viewer", "project_ids": ["prj_…"] }
PATCH/v1/orgs/{org}/members/{member}

Projects can be picked through the API only

The dashboard always gives roles for the whole organization. To limit a member's or a group's role to some projects, send project_ids through the API.

Permissions

The same names are used for members' roles and for the scopes of secret API keys. Monitoring, Logs and Updates permissions exist already, so roles made now will cover those products when they arrive.

AreaPermissionLets you
Organizationorg.settingsChange the organization's name, slug and settings
org.deleteDelete the organization
org.domainsAdd and verify company domains
org.ssoSet up SSO
Billingbilling.viewSee the plan, usage and invoices
billing.manageChange the plan, payment methods, add-ons, spend caps and wallet
Membersmembers.viewSee members, groups and roles
members.inviteInvite people and answer join requests
members.removeRemove members
members.rolesGive roles and groups to members
roles.manageCreate and edit custom roles and groups
Projectsprojects.createCreate projects
projects.settingsChange project settings
projects.deleteDelete projects
Keyskeys.viewSee API keys
keys.createCreate and change API keys
keys.revokeRevoke API keys
Analyticsanalytics.viewSee analytics
analytics.manageManage goals, funnels, segments and annotations
analytics.exportExport analytics data
analytics.sharePublish public pages and share tokens
analytics.sendSend server-side events with a secret key
Monitoringmonitoring.viewSee errors and issues
monitoring.triageResolve, assign and ignore issues
monitoring.manageManage source maps and uptime checks
Logslogs.viewSee logs
logs.manageManage sources, retention and saved views
Updatesupdates.viewSee updates
updates.publishPublish updates
updates.rolloutChange rollout percentage, pause
updates.rollbackRoll back updates
updates.manageManage channels and signing keys
Alertsalerts.viewSee alerts
alerts.manageCreate, edit and delete alerts
alerts.muteMute alerts
Audit logaudit.viewSee the audit log
audit.exportExport the audit log

The full list, with the built-in roles and their permissions, is also in the API:

GET/v1/permissions

Some screens still show what you can't do

The API checks every permission. Settings and billing screens hide the actions you can't take; the Analytics and Alerts screens don't hide them yet, so you may see a button that answers forbidden (403).

Examples

  • Release managers: a custom role with updates.view, updates.publish, updates.rollout and updates.rollback, given to the Mobile team group, scoped to the Shop app project.
  • An agency's client: Viewer on the client's one project, plus a custom role with analytics.export.
  • Finance: the built-in Billing role.

Next steps