Custom connectors
Add an app Lutril has no integration for, from a CSV export or from its HTTP API, with the fields a connector spec accepts.
A custom connector reads an app's accounts either from a CSV export or from the app's HTTP API. Create one from Settings → Integrations → Custom connector. It shows a Custom tag in the catalogue, and the bin icon deletes it.
CSV connector
A CSV connector works like CSV import: same columns, same limits, same Replace the import behaviour. Use it for an app with no API, or while you write the HTTP spec.
HTTP connector
An HTTP connector is a JSON spec that tells Lutril how to call the app's API. Credentials are never written in the spec: you store them in the connector's secret fields and the spec names them.
| Field | Values |
|---|---|
version | 1 |
transport | rest or graphql |
endpoint | The API base URL. HTTPS only, no private or internal address. |
auth.type | bearer, header (with header, the header name), basic or none |
auth.secret | The name of the stored secret, for example token |
operations | listUsers (required to read accounts), readUser, listAccessLevels, membership, removeUser |
listUsers
| Field | Meaning |
|---|---|
method, path | The REST call, relative to endpoint (GraphQL: query) |
itemsPath | Where the list sits in the response, for example data[] |
paginate.style | none, page, offset or relay, with the parameter names that style needs |
map.id | Required: the account's stable id |
map.email, map.displayName, map.role, map.isAdmin, map.status, map.avatar | Optional, each a dotted path into one item |
A map entry is a path string, or an object: { "path": "deleted", "values": { "true": "inactive", "false": "active" } } translates a vendor value, { "join": ["first_name", "last_name"] } concatenates fields, { "const": "member" } sets a fixed value.
Placeholders
A spec can use only these substitutions: {{email}}, {{displayName}}, {{userId}}, {{targetId}}, {{memberIds}}, {{memberIdsUnion}}. Anything else is refused when you save.
Example
{
"version": 1,
"transport": "rest",
"endpoint": "https://api.example.com/v1",
"auth": { "type": "bearer", "secret": "token" },
"operations": {
"listUsers": {
"method": "GET",
"path": "/users",
"itemsPath": "data[]",
"paginate": { "style": "page", "pageParam": "page", "pageSizeParam": "per_page", "pageSize": 100 },
"map": {
"id": "id",
"email": "email",
"displayName": "full_name",
"role": "role",
"status": { "path": "deleted", "values": { "true": "inactive", "false": "active" } }
}
}
}
}Membership writes
A membership operation must declare semantics: add_remove when the API adds or removes one member, replace_whole_list when its write call replaces every member of the target. With replace_whole_list, Lutril reads the current list first and sends {{memberIds}}, so a grant never strips other people's access.
Click Test in the builder before relying on a connector: it runs listUsers and shows the first accounts it read.