User management
Use this page to add people to your Codex, reset a password, unlock an account, disable a user, make someone an admin and revoke personal access tokens. Only admins see it.
Address: /settings/users. Admins also reach it from the account menu, under Users.


The table lists every user, sorted by name. The columns are Name, Email, Admin, Status, Last sign-in, Created and Tokens. Last sign-in reads “Never” until the user signs in. Tokens counts the personal access tokens that are not revoked and have not expired. Each row has buttons for the actions below.
The first admin comes from CODEX_ADMIN_EMAIL and CODEX_ADMIN_PASSWORD on first start. See Configuration.
Add a user
Section titled “Add a user”Codex has no sign-up and sends no email. You create the account and pass on the password yourself.
- Enter the person’s Email.
- Enter their Display name.
- Click Add user.


Codex shows a one-time password for the new user, with Copy and Done buttons. Copy it and give it to the person. Codex shows it once, so click Done only after you have passed it on. The new user signs in with it and has to choose a password before anything else opens. See Sign in and your account.


The new row reads “active · must change password” under Status until the person has done that.
A new user sees no books until a book owner shares one with them. See Sharing a book.
If an account with that email already exists, Codex shows “A user with the email … already exists.” in red and adds nothing. Codex ignores capital letters when it compares emails. The browser refuses an address with no @. If Codex does not accept an address, it shows “Enter an email address such as [email protected].”


Reset a password
Section titled “Reset a password”If someone forgets their password, click Reset password on their row. Codex shows a new one-time password in the same box as for a new user. The reset signs the person out of every browser and device. It also clears a lock. They have to choose a new password at their next sign-in.


Unlock a user
Section titled “Unlock a user”Ten wrong passwords in a row lock an account for 15 minutes. A locked row reads “locked” under Status and has an Unlock button. Click it to let the person try again at once. The button is only there while the account is locked.


After you click it, the status no longer reads “locked” and the button disappears.


Disable a user
Section titled “Disable a user”Codex has no delete, because every user owns books. Disable the account instead. A disabled user cannot sign in, and their personal access tokens stop working. Their books stay.
- Click Disable on the person’s row. The status reads “disabled”.
- To let them back in, click Enable. Their old password still works, unless you reset it.


You cannot disable your own account, so Codex dims Disable in your own row. Codex also refuses to leave the instance with no active admin.
Make someone an admin
Section titled “Make someone an admin”Click Make admin on a row. The Admin column reads “Admin” and the button becomes Remove admin. An admin sees the Users item in the account menu. The change takes effect on the person’s next request. You cannot remove your own admin rights, so Codex dims Remove admin in your own row.


Revoke personal access tokens
Section titled “Revoke personal access tokens”Click Revoke tokens on a row to stop every personal access token that person has. Use it when a laptop is lost or a person leaves a project. Codex dims the button when the Tokens count is 0. The person can create new tokens from their own account. See Tokens and scopes.


If you are not an admin
Section titled “If you are not an admin”A signed-in user who opens /settings/users sees “Only admins can manage users” and a Back to Library link. The server also refuses these actions with a 403 for anyone who is not an admin.


If a row action fails, Codex shows the reason in red above the table and the table reloads.