Role for managing hosts owned by the logged in user

Hi everyone ,

I would like to create a role\permission so a user will be able to manage
only hosts owned by him
My thought was to create a filter something like : "owner_id =
session[user.id]"
I can't find anything like "session[user.id]" in the documentation and API.
Does anyone knows if such parameter exists or has an idea of how to
accomplish such permission ?

Thanks,
Alex

I don't believe it's possible right now, we have a feature request
logged here: Feature #6468: Authorization filter owner = current_user - Foreman

The 1.4 to 1.5 migration sets up separate filters per user, with the IDs
stored within. I realise this is a huge amount of duplication…

··· On 10/07/14 15:06, Alexander Braverman Masis wrote: > Hi everyone , > > I would like to create a role\permission so a user will be able to > manage only hosts owned by him > My thought was to create a filter something like : "owner_id = > session[user.id]" > I can't find anything like "session[user.id]" in the documentation and API. > Does anyone knows if such parameter exists or has an idea of how to > accomplish such permission ?


Dominic Cleal
Red Hat Engineering