Onboard a new editor
Create the account of a new editor with a password nobody typed, and make the editor choose a new one at the first sign-in.
What you'll have at the end
An editor account in the Editors group, with the Editor role, that asks for a new password at its first sign-in.
Before you start
- Shell access to the server, in the installation root.
- The editor's e-mail address and name. The examples use
[email protected]and Jane Doe.
Steps
Check that the login is free.
./console exp:user:list --search=janeRun the create command as a dry run.
./console exp:user:create --login=jane --email[email protected] --first-name=Jane --last-name=Doe \ --group=Editors --generate-passwordThe command lists what it would create. A failed check is named.
Run the same command with
--apply. The account is published. The generated password is printed once.Require a new password at the first sign-in.
./console exp:user:require-password-change jane --applyCheck the groups and roles.
./console exp:user:roles list janeThe Editor role is listed, via the Editors group.
Hand over the login and the password on two different channels, for example the login by e-mail and the password by phone.
If the command says that the publish waits, the installation approves new accounts. Approve it with
./console exp:user:approve jane --apply.
Result
The editor signs in with the password, chooses a new one, and starts working.
Variants
- The editor chooses the password: use
--send-activationinstead of--generate-password. The editor gets the activation mail and then uses Forgot password. Skip steps 4 and 6. - Editors for one part of the site: create a group and limit the role to a subtree (Groups and roles).
Related pages
- Setting up accounts for editors and administrators: the same in the administration.
- Offboard someone who leaves