Project

General

Profile

Actions

Bug #11303

closed

Filter management with hamemr seems to be missing means of associating resource type

Added by Greg Swift over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I'm trying to manage creation of roles and their associated permissions. Haven't figured out how. This was as close as I could determine and it doesnt work.

hammer> filter create --role "Content Viewer" --permissions "view_gpg_keys,view_content_views" 
Could not create the permission filter:
  Permissions Permissions must be of same resource type

hammer> filter update --organization-ids 1 --id 76 --role "Content Viewer" --permissions view_products
Could not update the permission filter:
  Permissions Permissions must be of same resource type
  Organization ids You can't assign organizations to this resource

hammer> filter update --organization-ids 1 --id 76 --role "Content Viewer" --permissions view_products -^t^t
--help               --location-ids       --organization-ids   --permission-ids     --role               --search             
--id                 --locations          --organizations      --permissions        --role-id            -h        

Related issues 2 (0 open2 closed)

Related to Hammer CLI - Bug #11441: Hammer does not check whether it get correct number of resources when translating name to id parametersClosedActions
Related to Foreman - Refactor #28591: remove deprecated permissions api parametersClosedTomer BriskerActions
Actions

Also available in: Atom PDF