[ovirt-devel] User is not authorized to perform this action. - trying to add SSH Public Key for a user

Michal Skrivanek michal.skrivanek at redhat.com
Thu Dec 28 12:58:33 UTC 2017



> On 28 Dec 2017, at 13:49, Yaniv Kaul <ykaul at redhat.com> wrote:
> 
> I'm following the example[1] and getting an error:
> User is not authorized to perform this action.
> 
> What permission do I need (I'm using admin at internal) in order to do this?

UserProfileEditor

> Engine.log:
> 2017-12-28 07:25:35,571-05 WARN  [org.ovirt.engine.core.bll.AddUserProfileCommand] (default task-13) [5af96d04-f81d-4c76-9f06-ee03a12e2f71] Validation of action 'AddUserProfile' failed for user admin at internal-authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__USER_PROFILE,USER_NOT_AUTHORIZED_TO_PERFORM_ACTION
> 2017-12-28 07:25:35,572-05 DEBUG [org.ovirt.engine.core.common.di.interceptor.DebugLoggingInterceptor] (default task-13) [5af96d04-f81d-4c76-9f06-ee03a12e2f71] method: runAction, params: [AddUserProfile,
> UserProfileParameters:{commandId='a57680f0-3926-4808-8452-ea8d67b076a3', user='null', commandType='Unknown'}], timeElapsed: 41ms

user “null” sounds wrong

> 2017-12-28 07:25:35,577-05 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-13) [] Operation Failed: [User is not authorized to perform this action.]
> 
> TIA,
> Y.
> 
> [1] https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_user_ssh_public_key.py <https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_user_ssh_public_key.py>_______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20171228/1bc8be23/attachment.html>


More information about the Devel mailing list