What an organization holds
- Members, each an
owner, anadminor amemberof the organization. - The apps it uses, from the same environment only.
- A role per member per app, from the roles each app declares (see Machine API and roles).
An organization belongs to one environment. A staging organization never appears in a production token, and it can never use a production app.
Setting one up
Your workspace's owners and admins do this in the console:
- Open your workspace and create an organization in the environment it belongs to. Give it a name and a slug.
- Link the apps it uses.
- Invite people by email, with their role in the organization and, if you like, their role in each app.
An invitation is an email with a link to your environment's own sign-in page. The person accepts it by signing in there as the invited address. An invitation lasts 14 days, and inviting the same address again replaces the pending one.
Your workspace's owners and admins manage the organization from the console. They are not its members and never appear in its tokens.
The organization page
The owners and admins of an organization manage it themselves, signed in through your environment, at:
https://auth.nubisco.io/e/<environment id>/organizationThere they see their organizations in that environment, and for each one:
- Members: change a member's role, or remove them. An owner manages everyone. An admin manages admins and members, never an owner. Nobody changes or removes themselves.
- Invitations: invite someone by email with a role, and revoke a pending invitation.
- Reset two-step sign-in, for owners: for a member who lost every second factor. See Locked out.
A member who is neither owner nor admin sees the organization and its members, and changes nothing. Nobody on this page sees another organization, or anything of another environment. Link to it from your app wherever your customers manage their team.
What your app sees
For an app whose rule is Members of organizations that use it, the token names the organization the person is working in:
| Claim | What |
|---|---|
orgs | Every organization of the person's that uses this app |
org_id | The organization this sign-in is for |
org_slug | Its slug |
org_role | The person's role in the organization: owner, admin, member |
app_role | The person's role in this app in this organization, once the app has declared its roles |
A person in several organizations that use the app has to pick one. Your app shows its own picker and signs in again naming it. See Choosing an organization.
Not built yet
- Linking apps, app roles and renaming, on the organization page. Your workspace's owners and admins do these in the console.