[Bug]: Cannot delete an existing user using an admin account #2452

Open
opened 2026-02-28 20:14:10 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Carloz1112 on GitHub (Sep 4, 2025).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Hello, recently I implemented an Authentik instance to enable the OpenID login and the multi user feature.
Once I set and made the first login via OpenID it seems like that Actual didn't set the first user to login as the server owner.
Other than that I created some dummy basic user, but it seems like that I cannot delete them, even using the local admin or the admin user. Every time I try to delete a user I get an "Something happened while deleting users" in the UI, and by seeing the logs I can see this error:

Error on endpoint {
requestUrl: '/users',
stacktrace: 'Error: Invalid user IDs\n' +
' at Module.transferAllFilesFromUser (file:///usr/lib/node_modules/@actual-app/sync-server/build/src/services/user-service.js:85:15)\n' +
' at file:///usr/lib/node_modules/@actual-app/sync-server/build/src/app-admin.js:124:21\n' +
' at Array.forEach ()\n' +
' at file:///usr/lib/node_modules/@actual-app/sync-server/build/src/app-admin.js:119:9\n' +
' at Layer.handleRequest (/usr/lib/node_modules/@actual-app/sync-server/node_modules/router/lib/layer.js:152:17)\n' +
' at next (/usr/lib/node_modules/@actual-app/sync-server/node_modules/router/lib/route.js:157:13)\n' +
' at validateSessionMiddleware (file:///usr/lib/node_modules/@actual-app/sync-server/build/src/util/middlewares.js:39:5)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:105:5)'
}

I tried to find a similar issue but I didn't find it

How can we reproduce the issue?

By adding an admin user and some basic users, then with the admin user (or the local admin) trying to delete those basic users

Where are you hosting Actual?

Locally via Yarn

What browsers are you seeing the problem on?

Firefox

Operating System

Linux

Originally created by @Carloz1112 on GitHub (Sep 4, 2025). ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? Hello, recently I implemented an Authentik instance to enable the OpenID login and the multi user feature. Once I set and made the first login via OpenID it seems like that Actual didn't set the first user to login as the server owner. Other than that I created some dummy basic user, but it seems like that I cannot delete them, even using the local admin or the admin user. Every time I try to delete a user I get an "Something happened while deleting users" in the UI, and by seeing the logs I can see this error: Error on endpoint { requestUrl: '/users', stacktrace: 'Error: Invalid user IDs\n' + ' at Module.transferAllFilesFromUser (file:///usr/lib/node_modules/@actual-app/sync-server/build/src/services/user-service.js:85:15)\n' + ' at file:///usr/lib/node_modules/@actual-app/sync-server/build/src/app-admin.js:124:21\n' + ' at Array.forEach (<anonymous>)\n' + ' at file:///usr/lib/node_modules/@actual-app/sync-server/build/src/app-admin.js:119:9\n' + ' at Layer.handleRequest (/usr/lib/node_modules/@actual-app/sync-server/node_modules/router/lib/layer.js:152:17)\n' + ' at next (/usr/lib/node_modules/@actual-app/sync-server/node_modules/router/lib/route.js:157:13)\n' + ' at validateSessionMiddleware (file:///usr/lib/node_modules/@actual-app/sync-server/build/src/util/middlewares.js:39:5)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:105:5)' } I tried to find a similar issue but I didn't find it ### How can we reproduce the issue? By adding an admin user and some basic users, then with the admin user (or the local admin) trying to delete those basic users ### Where are you hosting Actual? Locally via Yarn ### What browsers are you seeing the problem on? Firefox ### Operating System Linux
GiteaMirror added the openidbug labels 2026-02-28 20:14:11 -06:00
Author
Owner

@youngcw commented on GitHub (Sep 5, 2025):

@lelemm

@youngcw commented on GitHub (Sep 5, 2025): @lelemm
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#2452