Dokumentation
ReferenzUsers

Invite a user.

POST
/users/{userId}/invitation

Mail a user that they can start using Galilea. Creating a user with POST /users deliberately writes nothing outside Galilea, which is what lets a person be put into groups before they have ever logged in; this is the step that turns such a row into something they can actually use.

There is no request body. What this does follows from the identityProvider the user was created with, and from nothing else, so the decision is made once at creation rather than again on every invitation.

A user of the sign-in Galilea manages is given a login account in the Galilea identity system and mailed the link that sets their password. An account that already exists is adopted rather than created again, so inviting the same person twice resends the mail instead of failing; the status code says which happened.

A user of a customer's directory is given a passwordless login account in the identity system, created with the address already verified and linked to their directory. They are mailed that their access is ready, with the address they sign in at. The mail is German. An account that already exists is adopted rather than created again, so this too can be repeated as often as needed.

That split is what keeps a federated person out of a second credential: a password account created beside their federated identity would keep working outside the conditional access, multi-factor and offboarding rules of the customer's directory, so disabling them in the directory would not lock them out of Galilea. Choosing the right provider at creation is therefore the moment that matters; GET /identity-providers lists what there is to choose from.

A user created before identityProvider was required carries none and is invited with a password account, which is what such a user would always have been given.

If the invitation fails, the user still exists in Galilea and keeps their group memberships — only the invitation needs repeating, not the provisioning.

Requires the right to edit users, which is the tenant manager and the administrator.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Path Parameters

userId*string

The id of the user to invite, as returned by GET /users.

Formatuuid

Response Body

The login account already existed and only the invitation was sent again — which is why this can be repeated as often as needed.

application/json
  1. response

A user of the tenant, as returned by the user listing.

id*string

Identifier of the user.

Formatuuid
emailAddress*string

The address of the user, and their identity in this API.

Formatemail
firstName?string

Given name.

lastName?string

Family name.

role*string

The role of the user.

Value in"light""viewer""editor""tenantManager"
identityProvider*

How the user signs in, one of the providers of the tenant as listed by GET /identity-providers. Every user has exactly one; it was named when the user was created and never changes. A script reconciling against GET /users reads here which of its people are federated.

status*string

Whether the user has ever logged in. A user stays invited until their first login, whether they were provisioned, invited or arrive through an identity provider.

Value in"invited""active"
groups*array<>

The team groups of the user. The personal group and the group of all users of the tenant are implicit and are not listed.

invitedAt?string

When the user was created in Galilea.

Formatdate-time
lastActiveAt?|

When the user last logged in; null while the user is invited.

Formatdate-time
curl -X POST "https://example.com/users/62e49dd6-954a-11ef-b06a-170340f38b3d/invitation"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "emailAddress": "anna.mueller@kunde.de",  "firstName": "Anna",  "lastName": "Müller",  "role": "editor",  "identityProvider": {    "id": "8f1b0c2e-9a44-11ef-9f3d-4f0c2b6a1d77",    "alias": "microsoft-entra"  },  "status": "invited",  "groups": [    {      "id": "7d9030b3-4c0f-4051-9d54-79a6802a0c22",      "name": "Legal"    }  ],  "invitedAt": "2019-08-24T14:15:22Z",  "lastActiveAt": "2019-08-24T14:15:22Z"}