Organisations
An organisation is a company, club or school that accounts belong to: a customer company of a B2B shop, a practice in a client portal, a club's board. Its people each have their own account; the organisation bundles them. See People in SHADE for how organisations sit beside the team.
An organisation is never a separate site. It has no admin, no settings, no content and no modules of its own. The team sees every organisation. A business that needs separate sites runs an instance for each.
Membership
Each account in an organisation has one place in it, shown as its Membership:
| Membership | May |
|---|---|
| Owner | Everything: invite, remove and change anyone's Membership, rename the organisation and delete it. |
| Manager | Invite and remove members, and nothing above that: never an owner or another manager. |
| Member | Belong, and leave. |
An organisation always keeps an owner:
- The last owner can't leave, be removed or be given another Membership. They make someone else owner first.
- When the last owner's account is deleted or erased, the next in rank becomes owner at once: the manager who has been in the organisation longest, else the member who has.
- When its last member's account goes, the organisation is deleted with it.
An account may belong to several organisations. Its memberships are its personal data: they are found, downloaded and erased with it on the Personal data screen. Erasing a person ends their memberships; what their organisation owns stays with the organisation.
Who starts them
The team starts organisations on the Organisations screen (in the sidebar's Customers) by giving a name and the address of its first owner. An account with that address, confirmed, becomes owner at once; otherwise the address gets an invitation to become owner.
Accounts can start organisations of their own on the site when the team allows it: switch on Accounts may start organisations on the Accounts screen (off by default). The account that starts one becomes its owner. An account starts at most 5 a day.
Invitations
Owners, managers and the team invite people by email address. A manager invites members only.
- The invitation is a link by email that works for 7 days and once. Inviting the same address again replaces it, and the old link stops working. It can be withdrawn while it waits.
- Following the link proves the address. Accepting needs an account with that address, confirmed; without one, the page says to sign up with the address first, and the link keeps working.
- The answer to an invitation is the same whether the address has an account or not, so inviting never tells anyone who has an account.
- An organisation sends at most 20 invitations a day, and one person at most 10 an hour.
The email's wording can be changed on the Email screen, under Invitation to an organisation.
In the admin
Organisations lists every organisation with how many accounts belong to it. One organisation shows:
- its members, each with their Membership, which the team can change (the last owner keeps theirs) or end;
- its open invitations, to send again or withdraw, and a field to invite an address;
- Rename and Delete. Deleting first says what goes (its members' places, its invitations, and what modules keep for it), then removes it for good: it does not go to the trash, because what an organisation owns is personal data.
On the Accounts screen, an account's actions menu has Organisations: the organisations it belongs to, with its Membership in each.
Roles in an organisation
A module can give accounts roles per organisation: in a B2B shop, who may order for the company and who may approve. The Membership itself gives no module's abilities; it only says who belongs and who manages that. Each module says, role by role, which Membership may give it in the organisation: owners, or owners and managers. They give and take those roles to the organisation's members on the site, never to themselves. The team gives them on an account's Roles dialog, again only to a member of that organisation. Leaving an organisation ends the roles held there.
Who may do it
| Action | Permission | Roles |
|---|---|---|
| See organisations, their members and invitations | accounts.organisations.read, never part of a custom role | admin |
| Start, rename and delete organisations, invite, change and remove members | accounts.organisations.manage, signed in, never a token | admin |
| Let accounts start their own | settings.update | admin |
| Act on an organisation on the site | its Membership (above); SHADE checks it | accounts in that organisation |
| Give a module's role in the organisation | the module's givenByRank; SHADE checks it | owners, or owners and managers |
Every change is in the audit log as accounts.organisations, without addresses.
On the website
The signed-in account's organisations are on the account API, under /api/v1/account/organisations (see the
API reference): its organisations and its Membership in each, one
organisation with its members (their addresses and the invitations only for owners and managers), starting one,
renaming, inviting, withdrawing, changing a Membership, removing a member or leaving, and deleting. An account that is
not in an organisation gets 404 for it, as if it did not exist.