Organizations
An organization groups several MecaPy users, typically collaborators from
the same company. It defines the scope of the internal package visibility
(see Visibility) and governs member management.
Key concepts
Section intitulée « Key concepts »- A user can belong to multiple organizations simultaneously.
- Two roles: User and Admin.
- Invariant: an organization must always have at least one Admin. The last Admin cannot be demoted or removed without promoting another first.
Creating an organization
Section intitulée « Creating an organization »Any authenticated user can create one from /organizations/new. Provide:
- Display name — free text shown in the UI (e.g.
Acme Corp) - Slug — URL-safe unique identifier (e.g.
acme-corp). Lowercase letters, digits and dashes only.
The creator is automatically added as Admin.
| Role | Permissions |
|---|---|
| User | Browse and execute internal packages of the organization. Can create/own packages and attach them to the organization. |
| Admin | All User permissions, plus: invite/remove members, change member roles, delete the organization, publish an organization’s package (switch to public). |
Organization-scoped packages
Section intitulée « Organization-scoped packages »A package is always owned by a user (the “responsible”), and optionally rattached to an organization. The organization’s only effects:
- Members can see the package in
internalvisibility. - Admins can switch it to
public.
Future versions will add ownership transfer (FRO-pkg-11 in our roadmap): an org Admin will be able to transfer ownership to another member.
Deleting an organization
Section intitulée « Deleting an organization »Admins can delete their organization from its detail page:
- Open
/organizations/{slug} - Click Delete organization in the Danger zone
- Re-type the slug as confirmation (GitLab-style)
- The deletion is refused if any package is still attached — transfer or archive packages first.