Translations: English
Search on Docs:
ActionItem Search:

Set the Environment Admin

You must use the Noosfero Console to follow this steps.

To create a new administrator user, run the following, replacing information (for example, e-mail and password should be replaced):
user = User.create(:login => 'adminuser', :email => '', :password => 'admin', :password_confirmation => 'admin', :environment => Environment.default)

If you have configured your server to send email, you will receive an e-mail with instructions to activate your new account, if not, you can do that using the console:

To add a person user as administrador, use the add_admin method as following:
Environment.default.add_admin user.person

Note If you have more than one environment, use Environment.find(id), where id is the ID number of the environment, instead of or Environment.default.

Add comment
You need to login to be able to comment.

This topic: Development > Configuration > SetEnvAdmin
Topic revision: 26 Aug 2016, UnknownUser
Copyright © 2007-2019 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres