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.
| Role | Can |
|---|---|
| Owner | Everything, including deleting the organization and changing owners |
| Admin | Everything except deleting the organization, changing owners and billing |
| Member | Use every product in its scope (view, manage goals, funnels and alerts, export, share), see members and keys; no organization settings |
| Viewer | View only: product data, alerts and members |
| Billing | Plan, 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
Open Settings → Roles
Built-in roles are listed first, then Custom roles. You need
roles.manageto create or change one.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.
Pick the permissions
Give it a name (up to 60 characters), an optional description, and tick the permissions it grants, grouped by area.
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.
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.
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.
1{ "role": "viewer", "project_ids": ["prj_…"] }
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.
| Area | Permission | Lets you |
|---|---|---|
| Organization | org.settings | Change the organization's name, slug and settings |
org.delete | Delete the organization | |
org.domains | Add and verify company domains | |
org.sso | Set up SSO | |
| Billing | billing.view | See the plan, usage and invoices |
billing.manage | Change the plan, payment methods, add-ons, spend caps and wallet | |
| Members | members.view | See members, groups and roles |
members.invite | Invite people and answer join requests | |
members.remove | Remove members | |
members.roles | Give roles and groups to members | |
roles.manage | Create and edit custom roles and groups | |
| Projects | projects.create | Create projects |
projects.settings | Change project settings | |
projects.delete | Delete projects | |
| Keys | keys.view | See API keys |
keys.create | Create and change API keys | |
keys.revoke | Revoke API keys | |
| Analytics | analytics.view | See analytics |
analytics.manage | Manage goals, funnels, segments and annotations | |
analytics.export | Export analytics data | |
analytics.share | Publish public pages and share tokens | |
analytics.send | Send server-side events with a secret key | |
| Monitoring | monitoring.view | See errors and issues |
monitoring.triage | Resolve, assign and ignore issues | |
monitoring.manage | Manage source maps and uptime checks | |
| Logs | logs.view | See logs |
logs.manage | Manage sources, retention and saved views | |
| Updates | updates.view | See updates |
updates.publish | Publish updates | |
updates.rollout | Change rollout percentage, pause | |
updates.rollback | Roll back updates | |
updates.manage | Manage channels and signing keys | |
| Alerts | alerts.view | See alerts |
alerts.manage | Create, edit and delete alerts | |
alerts.mute | Mute alerts | |
| Audit log | audit.view | See the audit log |
audit.export | Export the audit log |
The full list, with the built-in roles and their permissions, is also in the API:
GET/v1/permissionsSome 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.rolloutandupdates.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.