systemd · Example Payload

Varlink Userdb Getuser Example

Look up the systemd JSON User Record for user 'kinlane' via the io.systemd.UserDatabase Varlink interface.

BootCgroupsContainerD-BusInitIPCJournalLinuxLoggingNetworkOpen SourcePID 1Service ManagerSystemSystemdVarlink

Varlink Userdb Getuser Example is an example object payload from systemd, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationdescriptionrequestresponse

Example Payload

Raw ↑
{
  "operation": "io.systemd.UserDatabase.GetUserRecord",
  "description": "Look up the systemd JSON User Record for user 'kinlane' via the io.systemd.UserDatabase Varlink interface.",
  "request": {
    "userName": "kinlane",
    "service": "io.systemd.NameServiceSwitch"
  },
  "response": {
    "record": {
      "userName": "kinlane",
      "realName": "Kin Lane",
      "uid": 1000,
      "gid": 1000,
      "memberOf": ["wheel", "docker"],
      "homeDirectory": "/home/kinlane",
      "shell": "/usr/bin/zsh",
      "service": "io.systemd.NameServiceSwitch",
      "disposition": "regular"
    },
    "incomplete": false
  }
}