Errors after setting enableAnonymousUsers to false

I had anonymous users enabled in my server, but after setting it to false I get a lot of errors when fetching the _User class/list in the Parse dashboard:

TypeError: Cannot read properties of undefined (reading 'afterFind')
  at /home/parse/node_modules/parse-server/lib/Adapters/Auth/index.js:204:11
  at (<anonymous>)
  at Object.runAfterFind (/home/parse/node_modules/parse-server/lib/Adapters/Auth/index.js:197:32)
  at /home/parse/node_modules/parse-server/lib/RestQuery.js:698:85
  at (<anonymous>)
  at RestQuery.handleAuthAdapters (/home/parse/node_modules/parse-server/lib/RestQuery.js:698:43)
  at /home/parse/node_modules/parse-server/lib/RestQuery.js:201:17
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

All anonymous users have been deleted from the database but that did not solve the problem.
All other classes load fine but not the _User class.

The issue seems to be in:

Any ideas on how to fix this?

Fixed it by switching from enableAnonymousUsers: false to

auth: {
    anonymous: {
      enabled: false

in the server config.

Could you open a server issue?

Sure :slight_smile: