Blank page for Superuser with Admin role

Your question

I have setup a superuser with role Admin. If i go to /account for this user i see a blank page.

# stalwart-cli --url http://localhost:8080   --user admin   --password "$PASS"   query Account   --where name=superuser   --fields id,name,roles
id  Username   Roles             
c   superuser  Administrator role

How to fix this?

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

Here is a screenshot,

I think this and your “invalid username or password” topic are the same thing, so I’ll answer them together there. Short version for this one: the Administrator label on an account is a pointer rather than a permission set. It resolves through the Authentication object’s defaultAdminRoleIds to actual Role objects, and if that list is empty the account ends up with no permissions at all. The webui builds its navigation from the permission list the server returns, so an empty list renders as a blank page.

Have a look at your Role list and at defaultAdminRoleIds and defaultUserRoleIds on the Authentication object. I expect the Role list is empty. The four default roles are only created on a clean bootstrap where neither a Role nor an Authentication object exists yet, so an install that ended up with the Authentication object first never gets them linked.