Granular Permissions in Organizations
Granular permissions control what each member can view or change inside an organization. They improve security by reducing broad access and allowing only the actions each person needs.
In practice, you can let a user view only one project, read logs without changing settings, trigger deploys without accessing billing, or manage payments without touching environment variables.
Access model
Access combines four elements:
| Element | Purpose |
|---|---|
| Role | Defines the member's base level: owner, assistant, or member |
| Resource | Defines the affected area, such as organization, project, template, database, managed service, billing, AI key, or global API key |
| Action | Defines the allowed operation, such as reading logs, changing environment variables, or creating checkout |
| Reusable policy | Named set of permissions that can be attached to several members |
The owner has full access to the organization and bypasses granular checks. For assistant and member, access is denied by default: the effective permission is the union of the member's direct permissions, the permissions of the policies attached to them and the access of the teams they belong to.
When you invite an assistant, Zenifra applies an initial template covering operation of projects, databases, managed services, and AI keys, plus inviting members and adjusting permissions. This template does not include billing, API Keys, templates, or visitor data. The highest-impact actions are also left out: removing projects (project.delete), changing the plan (project.plan.update), viewing environment values (project.env.secrets.read), rotating database passwords (database.password.rotate), rotating managed service credentials (managed_service.credentials.rotate), and removing managed services (managed_service.delete). The owner grants each of them when the person needs it. Assistants who were already in the organization keep every permission they had, including viewing environment values. A member starts with no permissions.
Effective permissions are calculated on every request from the member's direct permissions, active policies and teams. They are never copied to the member: that is why editing or removing a policy really changes access, including for people who already created resources with it.
Protected resources
Permissions can be applied to different organization resources.
| Resource | Access examples |
|---|---|
| organization | Create projects, templates, databases, managed services, AI keys, API Keys, and teams; invite members; update permissions; view members' sign-in times |
| team | View, edit and archive teams, manage their members, be a maintainer and create projects inside them |
| project | View project, logs, metrics, visitor data, costs, variables, domain, network, instances, image, Git source, deploys, and Preview environments |
| template | View, edit, publish, and remove organization templates |
| database | View status, access connection, rotate password, and update version |
| managed_service | Operate Valkey managed services (Key-Value, Cache, and Queue) |
| ai_key | View, update, and delete keys, and inspect AI usage and costs |
| api_key | View and revoke global organization API keys |
| billing | View billing, transactions, checkout, and payment methods |
Some permissions are sensitive and should be granted carefully. Access to environment variables, database connection data, billing, and deploy changes can affect operations, security, or costs.
Visitor data
The source IP and user agent of each request received by the application are personal data of its visitors. That is why they require the project.network.visitors.read permission on the project, separate from project.metrics.read. Only the owner has this access by default: it is not part of the assistant initial template, of the grants received when creating a project, or of AI assistant connections through MCP.
| Permission | What it unlocks in network metrics |
|---|---|
project.metrics.read | Summary, status codes, routes, and user agents aggregated by volume, not linked to a specific visitor |
project.network.visitors.read | Individual request events (with source IP and user agent), the list of source IPs with the highest volume, and the Visitors page |
Anyone with only project.metrics.read receives 403 on the request events and source IPs queries; the data is not masked, the whole query is refused. See Network Metrics.
Environment values
Environment variable values are masked for anyone who has project.env.read but not project.env.secrets.read on the project (in the Console, View environment values). That person can still update the variables with project.env.update without erasing the values they cannot see. The owner has this access, and whoever creates a project receives it on that project; for other projects, grant it only to people who really need to read secrets. The API responses are in Environment Variables.
Organization data
The organization's registration and financial data, such as tax ID, company name, payment configuration, billing status, and balance, only appear for people with billing.read on billing:*.
Members' sign-in times
The date and time each member signed in to Zenifra require member.logins.read on organization:* (in the Console, View members' sign-in times). The owner always has this access, and a team maintainer sees the times of the people in that team. Only the date and time of each sign-in are shown, without IP or device. See Teams.
Resource scope
Permissions can be granted for every resource of a type or for a specific resource. For example, a member can receive access only to the staging project without viewing production projects.
Examples:
- access to logs and metrics for one project;
- permission to update the image for all projects in an organization;
- permission to view connection data for a specific database;
- permission to revoke a specific global API key;
- read access to billing without permission to configure payment;
- authorization to trigger deploys from the Git repository without changing the configured source.
This scope prevents people with limited responsibilities from seeing or controlling resources outside their work.
Organization API keys use the same resource scopes; member, invitation, and policy administration routes accept only a user session. The complete operational catalog, including resource scope and representative endpoints, is available in Organization API Keys. Creation scopes are granted on organization:*; actions on a resource should prefer its specific ID.
Reusable policies
Reusable policies avoid repeating the same configuration across members. On the Members page, create a policy with a name, an optional description, and permissions, then attach it to invitations or existing members. The same policies can also be used as a starting point when creating an API Key.
- a member can have several policies, plus direct permissions;
- editing a policy automatically changes the effective permission of every attached member;
- removing a policy removes its permissions from attached members; access granted by another policy or by a direct permission still applies;
- creating, editing, and attaching policies requires
member.permissions.updateonorganization:*, and anassistantcan attach policies to members only when they already hold every permission in them; - editing or removing a policy requires being able to delegate all of its content, both current and new; an
assistantcannot edit or remove a policy attached to anowneror anotherassistant(403).
Who can delegate
Only the owner and assistant delegate permissions. The owner can grant any permission to assistant and member. An assistant only grants permissions and policies they hold themselves, and only to people with the member role; attempts outside this rule respond 403. A member with member.invite, member.permissions.update, or member.logins.read can view members and policies, but cannot invite or change permissions.
Requests that send permissions (creating or editing policies, creating API Keys, inviting members, and changing a member's direct permissions) accept a body of up to 64 KB, enough for explicit grants on many resources.
Grants when creating resources
When someone who is not the owner creates a resource, Zenifra adds to that person's direct permissions only the grants for that new resource:
| Created resource | Grants received on the new resource |
|---|---|
| HTTP application or scheduled Job | Project operation: read, logs, metrics, variables (including their values), name, description, domain, network, instances, image, Git source, schedule, runs, deploy, stop, resume, plan, storage, and removal |
| Database | The same project grants, plus database status, connection, password rotation, and version update |
| Valkey service | The same project grants, plus the service's managed_service actions |
| Template | template.read, template.update, and template.delete; publishing requires template.publish granted separately |
| AI key | Read, update, removal, and usage inspection of the key |
| API Key | Read, edit, and revocation of the key |
Project grants do not include costs (project.billing.read) or visitor data (project.network.visitors.read). Projects created by an API Key receive their own grants, described in Organization API Keys.
Effects on member keys
Access changes also apply to the keys the member created:
| Change | Member's AI keys | API Keys created by the member |
|---|---|---|
| Removing the member, or the member deleting their account | Revoked | Revoked |
| Changing the role | Revoked if they no longer have ai_key.create | Limited to what they can still do |
| Changing direct permissions or linked policies | Revoked if they no longer have ai_key.create | Limited to what they can still do |
| Editing or removing a policy linked to them | Revoked if they no longer have ai_key.create | Limited to what they can still do |
Transferring ownership (former owner) | Revoked | No access until they receive permissions |
When the role changes, the member's permissions return to the new role's initial template and their linked policies are removed. Revocation happens before the change is saved: if the AI key revocation cannot be confirmed, nothing changes and the API responds 503 with the message organization member credentials could not be revoked. Try again shortly.
Recommended roles
Use roles as a starting point and adjust permissions as needed.
| Profile | Recommended configuration |
|---|---|
| Founder or main administrator | owner, with periodic member review |
| Technical lead | assistant, with operational access to the required projects |
| Developer of one service | member, with access to the specific project, logs, metrics, and deploy |
| Finance analyst | member, with billing and transaction read access |
| Support user | member, with logs and metrics read access, without environment changes |
Avoid making every collaborator an assistant. The broader the role, the higher the impact of human error, compromised credentials, or unplanned changes.
Practical examples
Developer with access to one project
Grant project read access, logs, metrics, and deploy only for the specific resource. If the person also needs to change environment variables, add that action explicitly.
Billing owner
Grant billing and transaction read access. Allow payment configuration or checkout creation only when the person is actually responsible for payment methods.
Database operator
Grant status and connection access for the specific database. Password rotation and version updates should remain restricted to authorized people.
Ownership transfer
Each organization has a single owner. Only the owner can change roles, remove members, and transfer organization ownership to another active member. On transfer, the previous owner becomes a member with no permissions; if they still need access, the new owner must grant the required permissions. Currently the transfer is done through the API, at PATCH /v1/organizations/{id}/ownership, sending the new owner's user_id with a user session.
The former owner's AI keys are revoked on transfer, and the API Keys they created lose access until they receive permissions again. Before transferring, recreate the keys used by critical automations with the new owner or a dedicated member.
| Code | Reason |
|---|---|
404 | The provided user_id is not an active member of the organization |
409 | The user_id is the owner's own (organization owner cannot transfer ownership to themselves) or the transfer could not be completed |
503 | The former owner's AI keys could not be revoked; nothing was changed |
Security best practices
- apply the principle of least privilege;
- prefer project-scoped access in critical environments;
- review permissions when someone changes roles;
- remove members who no longer participate in the organization;
- limit access to billing, secrets, and deploy configuration;
- use individual accounts, never shared credentials.
Granular permissions are most effective when they are part of a governance routine. Review members and permissions at defined intervals, especially in organizations with production systems, sensitive data, or relevant costs.
Next steps
- Understand organizations in Zenifra
- Invite members to an organization
- Create organization API keys
- Configure your account security
FAQ
Does owner need manually configured permissions?
No. The owner has full access to the organization.
Can I allow access to only one project?
Yes. Permissions can be applied to specific resources, allowing limited access to one project or database.
Do permissions replace account best practices?
No. Use granular permissions together with strong passwords, 2FA, member review, and removal of unnecessary access.
Last updated on
Invite Members to an Organization
Invite people to a Zenifra organization by email or with a 24-hour link, set their role and permissions, track pending invitations, and verify email domains.
Teams in Organizations
Group organization members into teams that own projects. Team members see and operate the team projects, without per-project permissions for each person.