On Wednesday, June 08, 2016 01:27:48 PM nicolas(a)devels.es wrote:
> I'm currently trying to use oVirt's API with a non-privileged username
> (only has UserRole over a few VMs) and when the request is made, a 400
> error is returned:
> <reason>Operation Failed</reason>
> query execution failed due to insufficient permissions.
> Is there a way to grant non-privileged users the ability to use API
> example, to list VMs where they have privileges)? What's the minimal
> permission a username needs to be granted to use the API?
> Users mailing list
I don't know which SDK you are using or if you are doing direct http
with your own framework, but in order for non privileged users to use
api you need to pass the 'filter: true' header with the request. This
the REST api to filter the results based on the users permissions.