wild276
wild276

Reputation: 43

Creating standard users as a sysadmin in CKAN

Creating a standard user from the command line in CKAN.

Hi All,

We'd like to block self registration on our CKAN build, so ckan.auth.create_user_via_api and ckan.auth.create_user_via_web have been great.

However, we still need a way of making standard user accounts. The CKAN documentation provides a way of creating a sysadmin user using a paster command (doc here: https://docs.ckan.org/en/ckan-2.7.3/maintaining/getting-started.html#create-admin-user)

Is there a way to create a standard user using a paster command?

Upvotes: 1

Views: 2150

Answers (1)

tino097
tino097

Reputation: 414

Yes, there is a CLI command to create standard user

paster user add standard_user name=StandardUser [email protected] password=password password1=password password2=password -c /path/to/production.ini

Upvotes: 2

Related Questions