systemd UserDatabase API

The UserDatabase API from systemd — 3 operation(s) for userdatabase.

Operations 3

POST /io.systemd.UserDatabase/GetUserRecord Look Up A User Record #
POST /io.systemd.UserDatabase/GetGroupRecord Look Up A Group Record #
POST /io.systemd.UserDatabase/GetMemberships Look Up Group Memberships #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/systemd-userdatabase-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

systemd-userdatabase-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: systemd-hostnamed (org.freedesktop.hostname1) Boot User Database API
  version: '1.0'
  summary: D-Bus API of systemd-hostnamed modeled as REST operations.
  description: 'Documentation/contract artifact for the `org.freedesktop.hostname1` D-Bus interface on the

    system bus. Manages the system hostname (static, transient, pretty), chassis type, deployment,

    location, icon name, and other machine info.

    '
  license:
    name: LGPL-2.1-or-later
    url: https://github.com/systemd/systemd/blob/main/LICENSES/LGPL-2.1-or-later.txt
servers:
- url: dbus://system/org.freedesktop.hostname1
tags:
- name: UserDatabase
paths:
  /io.systemd.UserDatabase/GetUserRecord:
    post:
      tags:
      - UserDatabase
      operationId: UserDatabaseGetUserRecord
      summary: Look Up A User Record
      description: Calls `io.systemd.UserDatabase.GetUserRecord`. NSS-replacement lookup, returns a JSON User Record per the systemd UserRecord spec.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                userName:
                  type: string
                uid:
                  type: integer
                service:
                  type: string
      responses:
        '200':
          description: JSON User Record.
          content:
            application/json:
              schema:
                type: object
                properties:
                  record:
                    type: object
                    additionalProperties: true
                  incomplete:
                    type: boolean
  /io.systemd.UserDatabase/GetGroupRecord:
    post:
      tags:
      - UserDatabase
      operationId: UserDatabaseGetGroupRecord
      summary: Look Up A Group Record
      description: Calls `io.systemd.UserDatabase.GetGroupRecord`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                groupName:
                  type: string
                gid:
                  type: integer
                service:
                  type: string
      responses:
        '200':
          description: JSON Group Record.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /io.systemd.UserDatabase/GetMemberships:
    post:
      tags:
      - UserDatabase
      operationId: UserDatabaseGetMemberships
      summary: Look Up Group Memberships
      description: Calls `io.systemd.UserDatabase.GetMemberships`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                userName:
                  type: string
                groupName:
                  type: string
      responses:
        '200':
          description: Memberships.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    userName:
                      type: string
                    groupName:
                      type: string