Account and team

Organizations, members and roles

What an organization holds, how to add members, and what owners, admins and members may do.

What an organization is

An organization is the account your team shares. It holds the members and their roles, the projects, the plan and the invoices. Registering creates one organization named after your company, with you as its only owner.

You can belong to several organizations, for example your own shop and a client's. Each one appears under Account → Organizations with your role in it. To join another organization, ask one of its owners to add you.

GET/v1/orgsSigned-in userGET/v1/orgs/:orgIdAny member of the organization

An organization you do not belong to answers 404 ORG_NOT_FOUND, the same as one that does not exist.

Roles

Each member has one role in the organization: OWNER, ADMIN or MEMBER. The role applies to every project of the organization. A higher role can do everything a lower role can.

  • Owner manages the members and their roles, and does everything an admin does.
  • Admin creates projects and API keys, changes indices, documents and search settings, and changes the plan.
  • Member sees everything and can try searches in the cabinet, but changes nothing.

What each role may do

This table follows the access rules of the API routes. API keys are listed too. A key belongs to one project and never reaches the organization's members, billing or keys.

ActionMemberAdminOwnerRead keyFull key
See the organization, its projects and its membersyesyesyesnono
See the plan, usage and invoicesyesyesyesnono
Change the plannoyesyesnono
Create a projectnoyesyesnono
Add members, change roles, remove membersnonoyesnono
See the project's API keys (name and prefix only)yesyesyesnono
Create and revoke API keysnoyesyesnono
Read indices, mappings, documents, tasks, profiles, synonyms, rules, autocomplete and analyticsyesyesyesyesyes
Search, suggest and test rules in the cabinetyesyesyesyesyes
Create and delete indices, change mappings and facets, reindexnoyesyesnoyes
Upload and delete documents, run a full catalog syncnoyesyesnoyes
Create, change and delete profiles, synonyms, rules and suggestionsnoyesyesnoyes

A route that your role does not allow answers 403 FORBIDDEN. Creating API keys also needs a verified email, see Verify your email.

Members

Organization → Members lists everyone in the organization with their email and role. Only owners see the role menus, the Remove buttons and the Add a member form.

The Members page with an owner, an admin and a member, each with a role select, and the Add a member formMembers and their roles

GET/v1/orgs/:orgId/membersAny member of the organization

Add a member

Enter the person's email, pick a role and click Add member. The person needs a Zaproo account already, because there are no email invitations yet. Ask them to register first. Their registration creates an organization of their own, which they can ignore.

POST/v1/orgs/:orgId/membersOwner, not while support is acting as you
curl -X POST https://api.zaproo-search.com/v1/orgs/$ORG_ID/members \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"email": "anna@shop.example.com", "role": "ADMIN"}'

An email without an account answers 404 USER_NOT_FOUND. A person who is already a member answers 409 ALREADY_MEMBER.

Change a role

Pick the new role in the member's row. The change applies to the member's next request.

PUT/v1/orgs/:orgId/members/:userIdOwner, not while support is acting as you

Remove a member

Click Remove in the member's row. The person loses access to every project of the organization at once. The API keys they created keep working, because keys belong to the project, not to a person. Revoke those keys on the project's API keys page if the person should lose that access too.

DELETE/v1/orgs/:orgId/members/:userIdOwner, not while support is acting as you

Keep at least one owner

An organization always has at least one owner. Demoting or removing the last owner answers 409 LAST_OWNER. To hand the organization over, make the new person an owner first, then change your own role.

Seats

Each plan includes a number of seats, one per member. The Free plan has 2. When the organization reaches 80% and 100% of its seats, the owners and admins get an email and the cabinet shows a usage banner. Adding a member over the limit still works. Plans and billing lists the seats of each plan.

Common mistakes

  • Giving everyone the owner role. Owners can remove other owners. Give the admin role to people who build search, and keep two owners, so the organization never depends on one person.
  • Removing a member and forgetting their keys. Revoke the keys that person used in scripts and servers.
  • Adding a person before they registered. The API answers 404 USER_NOT_FOUND. Ask them to register first.