Not authorized for action "admin" for Rundeck User account

654 views
Skip to first unread message

Ray

unread,
May 29, 2014, 2:58:28 PM5/29/14
to rundeck...@googlegroups.com
Hi,

I am new to Rundeck. I have it set up with a project named test and an auth token. I can successfully run these three commands:
http://localhost:4440/api/11/project/test?authtoken=0wjySrOqWQFC69PFPxZoinrV6mEdJWKa
http://localhost:4440/api/1/system/info?authtoken=0wjySrOqWQFC69PFPxZoinrV6mEdJWKa
http://localhost:4440/api/1/projects?authtoken=0wjySrOqWQFC69PFPxZoinrV6mEdJWKa

But when I try
http://localhost:4440/api/11/tokens/admin?authtoken=0wjySrOqWQFC69PFPxZoinrV6mEdJWKa I get the message "Not authorized for action "admin" for Rundeck User account".

Do I have to set something in the aclpolicy files?

Thanks,

Ray

Jean-Pascal Rambaud

unread,
Jun 15, 2016, 12:20:18 PM6/15/16
to rundeck-discuss
Hi Ray,

I encounter the exact same problem as you did. I am getting the same error message when calling /api/11/tokens in order to generate a token.
Have you found any solution ?

Thanks

JP

Philippe Vidal

unread,
Jun 17, 2016, 7:59:34 AM6/17/16
to rundeck-discuss
Hi,

Exactly ! :) You have to add an acl in your aclpolicy file.

I show you the complete acl you must insert in the right place in your aclpolicy file:

context:
  application: 'rundeck'
for:
  resource:
    - equals:
        kind: user
      allow: [admin]

Hope it works for you.

Philippe

Le jeudi 29 mai 2014 20:58:28 UTC+2, Ray a écrit :

Jean-Pascal Rambaud

unread,
Jun 20, 2016, 8:44:21 AM6/20/16
to rundeck-discuss
Hi Philippe,

Indeed, it works ! Thank you very much !
Reply all
Reply to author
Forward
0 new messages