Way to create new foreman user using rake?

Hi all,

As we can rake permissions:reset etc, is there a way to create another
admin user via rake also?

Thanks.

The mentioned rake first tries to find the mentioned user, if no user is
mentioned it considers for admin user if no such admin user exists it
will create one with admin privileges.

··· On Thursday, December 1, 2016 at 4:12:03 PM UTC+5:30, myrubyco...@gmail.com wrote: > > Hi all, > > As we can rake permissions:reset etc, is there a way to create another > admin user via rake also? > > Thanks. >

Hello

I don't think so, but you can easily create admin using API or hammer CLI.

Hope this helps

··· -- Marek

On čtvrtek 1. prosince 2016 2:42:03 CET myrubycodeccount@gmail.com wrote:

Hi all,

As we can rake permissions:reset etc, is there a way to create another
admin user via rake also?

Thanks.

rake permissions:reset username=bclark password=changeme

will create a user 'blcark' with password 'changeme' with admin privileges.

··· On Thursday, December 1, 2016 at 4:12:03 PM UTC+5:30, myrubyco...@gmail.com wrote: > > Hi all, > > As we can rake permissions:reset etc, is there a way to create another > admin user via rake also? > > Thanks. >