)]}'
{
  "commit": "0be2467f1c4b8261a23e083f7f686f62d3aae0e2",
  "tree": "776fed723f772364a9780f8f882d11b5e548d768",
  "parents": [
    "2ac76b5d6855ba8f2813237e6499ec7394180c43"
  ],
  "author": {
    "name": "Thomas Draebing",
    "email": "thomas.draebing@sap.com",
    "time": "Fri Feb 12 09:28:08 2021 +0100"
  },
  "committer": {
    "name": "Thomas Draebing",
    "email": "thomas.draebing@sap.com",
    "time": "Mon Feb 15 14:37:51 2021 +0100"
  },
  "message": "Add command to register existing user as service user\n\nBefore installing the serviceuser plugin technical users might already\nexist, e.g. in LDAP or in Gerrit itself. It might be desirable to\nregister those users as service users to avoid having multiple account\ntypes for the same purpose.\n\nThis change adds a SSH command that allows to register an existing\nuser as a serviceuser by adding the serviceuser specific data to the\nserviceuser.db file in the All-Projects repository.\n\nTo be able to execute this command, the caller has to either be an\nadministrator or be the user that should be registered as a service\nuser and have the \u0027create serviceuser\u0027 capability. This was done to\nprevent users from registering other users, which they don\u0027t own, as\nserviceusers, which would allow them to basically get all access rights\nthe serviceuser has.\n\nThe command allows for setting the creator manually and to also set\nthe owner group.\n\nChange-Id: I447bc702565d2836ef12072fd5656be343428cf3\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f01b56f4cdaf7ae9edc3af16dfb13c762602623b",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/serviceuser/RegisterServiceUser.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fb8503c63712af7c06d0ab1e541d8da36ac417a9",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/serviceuser/RegisterServiceUserCommand.java"
    },
    {
      "type": "modify",
      "old_id": "f775e4c9658e6f83c2757740c15d062abad8351c",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/serviceuser/SshModule.java",
      "new_id": "40a15098fda366346488dcd32b5065df802913cb",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/serviceuser/SshModule.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3378a2c7e28f22e6a391004dda4877c93c7fadaa",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/cmd-register.md"
    }
  ]
}
