# Paperless initial setup

Login will not work until the first superuser account has been created. Use the
following command **before trying to login with kanidm** to create the initial
superuser account:

```
sudo /var/lib/paperless/paperless-manage createsuperuser
```

Without this, a 403 error can be observed in the network tab.
Other errors in the Web UI that indicate this are:
`Something went wrong"

In `paperless-web.service` logs
`Forbidden: /api/ui_settings/`

Source: https://wiki.nixos.org/wiki/Paperless