Description of problem:
Non-admin users are unable to see the Personal Access Tokens that they created.
Adding the `view_users` permission to the non-admin user fixes the issue.
However, the user should be able to list his tokens without the need of assigning the `view_users` permission that exposes the user list to the non-admin user.
Exposing the user list might not be acceptable in some customer environments.
Version-Release number of selected component (if applicable):
@Satellite 6.10.0 snap 13
Steps to Reproduce:
1. create a role with Personal access token filter
and unrestricted permissions
view_personal_access_tokens, create_personal_access_tokens, revoke_personal_access_tokens
2. assign a role to non-admin user
3. log out and log in as a non-admin user
4. username -> my account -> personal access tokens tab
5. create a token
6. click Submit and go back to username -> my account -> personal access tokens tab to list the tokens
The non-admin user is not able to list its Personal access tokens without having the `view_users` permission assigned.
The non-admin user is able to list its Personal access tokens without having the `view_users` permission assigned.
Created during verification of BZ1974685
Created redmine issue https://projects.theforeman.org/issues/33371 from this bug
Upstream bug assigned to dmatoule
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33371 has been resolved.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.