Document auditor service accounts

What does this MR do?

The auditor page does not say that a service account can be an Auditor. The service account pages do not mention Auditors. An administrator who wants a read-only credential that needs no project membership finds no page that names the route.

This MR adds a section to doc/administration/auditor_users.md. It sets auditor on an instance service account with the users API, creates a personal access token with the read_api and read_repository scopes, and says what that token can read.

Evidence

  • The users API accepts auditor on update (ee/lib/ee/api/helpers/users_helpers.rb:14, documented under Modify a user as Premium and Ultimate only), and PUT /users/:id requires an administrator (lib/api/users.rb:480). The model validates the licence add-on and that a user is not both administrator and Auditor, with no service account exclusion (ee/app/models/ee/user.rb:460-469).
  • On a self-managed GitLab 19.5.3 Ultimate instance, a service account set to Auditor, with a read_api and read_repository token and no project memberships, listed, read and cloned a private project. The same account without Auditor got 404 for the project, its repository tree and its README, did not see the project in its project list, and could not clone it.

Related to #632943 (closed)

I asked in that issue whether an Auditor service account is a supported route (note). That issue closed on its admin mode decision (@dlrussel, note), so the question is still open. The auditor and service account pages belong to the Authentication group: if you don't support this route, I'll change the section to say so instead.

Author's checklist

If you are a GitLab team member and only adding documentation, do not add any of the following labels:

  • ~"frontend"
  • ~"backend"
  • ~"type::bug"
  • ~"database"

These labels cause the MR to be added to code verification QA issues.

Reviewer's checklist

Documentation-related MRs should be reviewed by a Technical Writer for a non-blocking review, based on Documentation Guidelines and the Style Guide.

If you aren't sure which tech writer to ask, use roulette or ask in the #docs Slack channel

  • If the content requires it, ensure the information is reviewed by a subject matter expert.
  • Technical writer review items:
    • Ensure docs metadata is present and up-to-date.
    • Ensure the appropriate labels are added to this MR.
    • Ensure a release milestone is set.
    • If relevant to this MR, ensure content topic type principles are in use, including:
      • The headings should be something you'd do a Google search for. Instead of Default behavior, say something like Default behavior when you close an issue.
      • The headings (other than the page title) should be active. Instead of Configuring GDK, say something like Configure GDK.
      • Any task steps should be written as a numbered list.
      • If the content still needs to be edited for topic types, you can create a follow-up issue with the docs-technical-debt label.
  • Review by assigned maintainer, who can always request/require the reviews above. Maintainer's review can occur before or after a technical writer review.

An AI coding assistant wrote this change. The assistant also checked each claim against the GitLab source files cited above, ran Vale and markdownlint on the changed page, and ran each described behavior on a self-managed GitLab 19.5.3 Ultimate instance on a test VM.

Merge request reports

Loading
Loading