Katello not showing all job categories in schedule remote job

Problem:

Katello doesn’t show the full job category when trying to execute a Schedule Remote Job:

It just shows an empty dropdown list:

But using the Legacy Form it shows all the job categories:

This user has a custom role with the following filters (among others):

If the user has the “administrator” check, it shows the full job categories in the new UI.

Expected outcome:

Show all the job categories in the new Run Job form.

Foreman and Proxy versions:

foreman 3.5.2
foreman-proxy 3.5.2

Foreman and Proxy plugin versions:

katello 4.7.4
rubygem-foreman_remote_execution-8.2.0

Distribution and version:

Rocky Linux 8.7

Other relevant data:

Tested with both lastest Katello and 4.7.0. It worked well with data populated in both cases.
Seems to be related to your local environment.