Bug: Roles and permissions page counts should not include bots
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
When viewing the default roles on the Roles and Permissions Page, these directly assigned users also include bots. These counts should only include active users (user is not blocked and does not have the minimal access role) and exclude bots. Members from group invites should not be counted.
Related slack discussion: https://gitlab.slack.com/archives/CFHGVJ06R/p1730813575979139
Steps to reproduce
- Go to Instance or Top level group
- View Settings - > Roles and Permissions
- Look at Directly Assigned Users
- Counts are inflated by bot users.
Example Project
What is the current bug behavior?
Counts include bot users and regular users
What is the expected correct behavior?
Counts should include regular users only.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: \`sudo gitlab-rake gitlab:env:info\`) (For installations from source run and paste the output of: \`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:check SANITIZE=true`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true`) (we will only investigate if the tests are passing)
Possible fixes
Edited by 🤖 GitLab Bot 🤖