Organizations and roles
Who can do what in an organization, on every module or on one, and where each change is recorded.
Everything on Odel belongs to your account or to an organization, and what you can do in an organization comes from the roles you hold in it. A role never belongs to a person: an organization defines its roles, and its members hold them. Two kinds work together. An organization role applies across the organization, and an access level is given on one module. What you can do is everything you hold, added up. Nothing you hold ever takes something away.
Your account and organizations
Your account is named by your handle. It owns your modules, gateways, installs, credits and plan, and it is yours alone: it can never have members, so it has no roles to manage, and you can do everything in it.
You are always working in one context: your account, or an organization you belong to. The switcher in the navbar lists your account first, labelled Your account, then your organizations. With your account as the context, settings has no Members, Roles or Audit log page.
Settings has two groups. You is the same wherever you are working. The other is headed by
the name of what you are working in: your @handle, or the organization's name.
A page about one account or organization names it in its address, by handle:
odel.app/account/@acme/members, odel.app/vault/@acme, dev.odel.app/@acme/analytics. Opening
such an address switches you to working in it, so a link you send a teammate opens the same page
for them. A page acts on the handle in its own address, so two tabs open on different handles do
not affect each other. Choosing another entry in the switcher moves you to the same page under its
handle. A handle you are not a member of shows Not found. With current in the handle's
place (odel.app/account/current/members), the address opens that page for whatever you are
working in.
To work with other people, create an organization with New organization in the switcher, or from the General page of that second group (Account or organization settings → General). Whoever creates it is its owner. Invite people from Organization settings → Members by email, picking the roles each one starts with. Invitations expire if nobody accepts them.
An organization can't take a handle that marketplace listings it doesn't own sit under, when it is created or renamed; saving its own handle unchanged is never refused. The create form's refusal links to the claim page: when the listings are from the MCP registry, claiming them there creates the organization with that handle.
Settings pages your roles don't open stay in the menu, greyed out, with the reason when you hover them.
The default roles
Every organization starts with these organization roles. Only Owner is fixed. The others are a starting point, and an organization on a paid plan can edit or delete them.
| Role | What it is for | On every module |
|---|---|---|
| Owner | Holds every permission, on every module. The only fixed role. | Everything |
| Admin | Runs the organization: members, roles, the vault, OAuth apps and every module. No billing, payouts or handle. | Admin |
| Billing manager | Runs the organization's money: billing, credit grants, payouts, and the analytics and earnings across every module. | None |
| Member | Creates modules and works on every module at Write level. Sees the vault's item names and the OAuth apps. | Write |
An organization that had managers before roles could be edited also has Manager: Maintain on every module, plus managing the OAuth apps, meant to be held beside another role. Other organizations don't have it.
A member can hold several roles, and they add up. Billing manager holds no access to modules, so someone who keeps the books and also builds holds Billing manager and Member together. Everyone holds at least one role.
Access to one module
An organization role's module permissions apply to every module the organization has. To give someone more on one module, give them an access level on it, from Members & roles on that module's Settings tab in the developer portal. There are five, each holding everything below it:
| Access level | Adds |
|---|---|
| Use | Install and call the module. |
| Read | See the project in the portal. |
| Write | The listing, settings, secret names, the inspector and the Statistics and Logs panels. |
| Maintain | The repo, builds and deploys, secret values and the module's earnings. |
| Admin | Full control of the module: publishing, pricing, access, rename and delete. |
An access level can go to one member, or to an organization role, which reaches everyone who holds that role now or later. It only ever adds to what the member's organization roles give them. Owners can't be given one, since they already hold everything on every module.
Whoever creates a module starts with Maintain on it, unless they are an owner or the organization has deleted Maintain. The same happens to whoever transfers a module in or claims a listing. Any access the module carried before starts afresh.
A module you can't see in the portal answers as if it doesn't exist. One you can see, asked to do something your roles don't allow, says which permission it takes. Taking access away can take up to a minute to reach every page.
Internal modules are listed and installable for members who can use them, through an organization role or an access level on the module. With the default roles that is every member except one who holds only Billing manager.
Making your own roles
Organization settings → Roles lists the roles in two tabs, Organization roles and Module access, for anyone whose roles let them see the roles. Open one to see every permission it holds. New role and New access level open the same editor: a name, a key, a description, and the permissions grouped by area. Start from copies another role's permissions as a starting point.
- The key is set once. The name and description can change later; the key can't.
- Some permissions come with others. Managing something includes seeing it, Pay out to themselves includes See payouts, and any permission on a module includes seeing it in the portal and using it. A permission another one brings with it is ticked and locked, and says which one it comes with.
- You can't give a permission you don't hold, or take one away. Unless you are an owner, those boxes are locked, and Start from copies only the permissions you hold.
- A role can't be deleted while someone holds it, or while an access level on a module names it. Change their roles, or remove that access, first.
How many roles an organization can add depends on its plan:
| Plan | Roles beyond the defaults |
|---|---|
| Free | none, and the defaults are used as they are |
| Basic | 10 |
| Pro | no limit |
On Free, access levels on single modules still work, with the default levels. After a move to a plan with fewer custom roles, the newest ones past the limit are marked Over plan: whoever holds them keeps what they hold, and those roles can't be edited until some are deleted or the plan goes up.
Who can change whose roles
On the Members page, changing someone's roles needs permission to change roles, inviting someone needs permission to invite people, and removing someone needs permission to remove members. Beyond that:
- You can't change your own roles.
- Only an owner can make someone an owner, change an owner's roles, or remove an owner.
- You can't give a role that holds a permission you don't, including access it carries on single modules, whether you're changing someone's roles or inviting them.
- You can't take away a role that holds a permission you don't. Leaving a role someone already holds in place is never checked.
- You can't remove someone who holds a permission you don't, their access on single modules included.
- While the organization pays out to someone's personal payout account, they keep Pay out to themselves. A role change, an edit to a role they hold, or a removal that would take it from them is refused. Disconnect the account first.
With the default roles, that means an admin can't make anyone a billing manager, and only an owner can remove one.
A refused change says why: the role picker locks a role you can't give or take, and the server refuses the same change if it is sent anyway.
Leaving
Leave organization, at the bottom of the Members page, takes away everything you held there: its modules, its vault, and any credits it grants you. The only owner can't leave; make someone else an owner first. Nor can you leave while the organization pays out to your personal payout account: disconnect it first. The same stops you deleting your Odel account. After leaving, you are back in your account.
The audit log
Organization settings → Audit log records every change to who can do what, newest first, with who made it:
- invitations sent and cancelled;
- members joining, being removed, leaving, or leaving by deleting their account, with the access on single modules that ended with them;
- a member's roles, before and after;
- roles and access levels created, edited (renamed, permissions added and removed) and deleted;
- access on a module given, changed or taken away, for a member or for everyone holding a role;
- a module's access starting afresh when it is created, transferred in or out, claimed, deleted or released.
You can read it if your roles let you read the organization's history, as owners and admins can by default. The same permission opens the vault's Activity tab, and the vault's own changes stay on the vault page.
Entries are kept as long as the organization exists. Names show as they are now. Someone whose account is gone shows as "A deleted account", and a change Odel made itself shows as "Odel". Each module's Settings tab in the developer portal has an Access history of its own changes, under Members & roles, for anyone who can manage access to that module.
Every permission
These are the permissions the role editor shows, and which default roles hold each.
Across the organization
| Permission | What it covers | Held by default by |
|---|---|---|
| Edit the organization | Its name and logo. | Owner, Admin |
| Change the handle | Moves every module's address. | Owner |
| Delete the organization | Everything it owns goes with it. | Owner |
| Read the history | Who changed what in the vault, and who changed whose access. | Owner, Admin |
| Invite people | Send an invitation by email. | Owner, Admin |
| Cancel invitations | Withdraw one that is still pending. | Owner, Admin |
| Add members | Add someone without an invitation. | Owner, Admin |
| Change roles | Give or take a member's roles, up to what you hold. | Owner, Admin |
| Remove members | Take someone out of the organization. | Owner, Admin |
| See the roles | Which roles exist and what each holds. | Owner, Admin, Billing manager, Member |
| Create roles | Up to what you hold. | Owner, Admin |
| Edit roles | Their names and permissions, up to what you hold. | Owner, Admin |
| Delete roles | One nobody holds and no module grant names. | Owner, Admin |
| Create modules | New projects and gateways in the organization. | Owner, Admin, Member |
| Claim listings | Claim marketplace listings for the organization, or say one waiting on it isn't its own. | Owner, Admin |
| See the vault | Item names only. Values are never shown. | Owner, Admin, Member |
| Use vault items | Point a module's secrets at a vault item. | Owner, Admin |
| Manage the vault | Add, rotate, rename and delete items. | Owner, Admin |
| See the OAuth apps | Which apps the organization has registered. | Owner, Admin, Member, Manager |
| Manage the OAuth apps | Register, edit and remove them. | Owner, Admin, Manager |
| See billing | The plan, the credit balance and purchases. | Owner, Billing manager |
| Manage billing | Buy credits, change the plan, refunds, the payment card and fair-use blocks. | Owner, Billing manager |
| See credit grants | What the organization funds for its members. | Owner, Billing manager |
| Manage credit grants | Grants, grant rules and the reserve. | Owner, Billing manager |
| See payouts | What the organization is paid for its modules. | Owner, Billing manager |
| Manage payouts | Apply to the creator program, and set up and manage the organization's company payout account. | Owner, Billing manager |
| Pay out to themselves | Point the organization's payouts at their own personal payout account, or disconnect it. | Owner |
| See analytics | Usage across every module and gateway. | Owner, Admin, Billing manager |
| See earnings | What every module earns. | Owner, Admin, Billing manager |
On a module
On an organization role these apply to every module; as an access level, to the one module it is given on.
| Permission | What it covers | Lowest access level that holds it |
|---|---|---|
| Use | Install and call it. | Use |
| See it in the portal | The project and its settings, read only. | Read |
| Manage access | Give and take access levels on it, up to what you hold. | Admin |
| Edit settings | Required secrets, platform version and the rest. | Write |
| See secret names | And plain variable values. | Write |
| Manage secrets | Set and change secret values. | Maintain |
| Build and deploy | The repo, builds and deploys. | Maintain |
| Use the inspector | Call it with its development secrets. | Write |
| Edit the listing | Name, tagline and store page. | Write |
| Set the price | What a call costs. | Admin |
| Publish | Who can find and install it. | Admin |
| Rename | Change its address. | Admin |
| Delete | Delete it, or move it to another organization. | Admin |
| See statistics and logs | Its calls, callers and errors. | Write |
| See earnings | What it earns. | Maintain |