Role rights for errata/apply

Problem:
Can’t seem to find the correct rights to allow user to “PUT /api/hosts/:id/errata/apply”

Also: is there an info-page to show X rights needed for Y action that you could point me to? Think this is the 3rd post about rights that i create in the last few weeks :stuck_out_tongue:

Expected outcome:
Hoped to find it under either hosts or errata category, but didn’t see it while looking quickly over it

Foreman and Proxy versions:
Katello 1.12
Foreman 1.22

Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

logs

Hi birkirf,

The permission you’re looking for is edit_hosts under the Host resource type.

One way to find out about permissions is by searching for the API endpoints in the code. For example, the permission you were looking for is here: https://github.com/Katello/katello/blob/master/lib/katello/permissions/host_permissions.rb#L5-L6

Fantastic, thank you!

1 Like