Removing bot user created from project access token

Problem to solve

I created some Project Access Tokens in a private project of a private group on Feb. 27. I automatically created bot user in the project for each of them.

I then revoked those tokens in the settings, but I can’t remove those bot members that are bloating the member’s list.

How to remove those bot users ? :sweat_smile:

Steps to reproduce

  1. Having a private group and project
  2. Creating a Project Access Token
  3. It creates a bot
  4. Revoking the PAT
  5. Bot is not removed

Versions

Please add an x whether options apply, and add the version information.

  • Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions

  • GitLab 17.10

Helpful resources

  1. Check the FAQ for helpful documentation, issues/bugs/feature proposals, and troubleshooting tips.
  2. Before opening a new topic, make sure to search for keywords in the forum search
  3. Check the GitLab project for existing issues. If you encounter a bug, please create a bug report issue.
  4. Review existing troubleshooting docs.

Thanks for taking the time to be thorough in your request, it really helps! :blush:

I had the same question and found your forum post. I continued my search and found this page in the documentation: Project access tokens | GitLab Docs

The relevant section is:

When the project access token is revoked:

  • The bot user is retained for 30 days.
  • After 30 days the bot user is deleted. All records are moved to a system-wide user with the username Ghost User.

In other words, in a couple of days you should see those user accounts disappear.

2 Likes

And the same should apply to bot users for groups, according to Group access tokens | GitLab Docs