"No results were found" for site user list

Another small piece of data.

When visiting https://discourse.example.org/directory_items.json?period=all&order=days_visited on a site where I have normal non-admin membership, this API request returns a nice long list of users for me.

On my site with the “No results were found” error (both as an anonymous not-logged in user and as myself with admin rights), the API returns:

{
  "errors": [
    "You are not permitted to view the requested resource."
  ],
  "error_type": "invalid_access"
}

Does this error happen to ring any bells for anyone that could help me to figure out what is misconfigured on my site?

UPDATE: OK, I’ve officially been around Discourse too long. I forgot there is a site setting enable user directory that was turned off a long time ago. Unsurprisingly, re-enabling it back to its default active state resolved this error. :laughing: