[GH-ISSUE #1711] [FEAT]: Enahance :workspaceId/users API and models/workspace.js workspaceUsers() function #1120

Closed
opened 2026-02-22 18:23:12 -05:00 by yindo · 0 comments
Owner

Originally created by @lewismacnow on GitHub (Jun 18, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1711

What would you like to see?

What:
This feature request is to add "User ID", expanding the data returned from this Endpoint:

https://github.com/Mintplex-Labs/anything-llm/blob/1c473621aa7431778c1a472c038e97fa05a68639/server/endpoints/admin.js#L230

This Endpoint is using the workspaceUsers function, so to achieve this can alter the data returned by this method:

https://github.com/Mintplex-Labs/anything-llm/blob/1c473621aa7431778c1a472c038e97fa05a68639/server/models/workspace.js#L222

This update also requires an update to the swagger docs to show the real output here:

https://github.com/Mintplex-Labs/anything-llm/blob/1c473621aa7431778c1a472c038e97fa05a68639/server/swagger/openapi.json#L529

To the swagger docs, we should add the "last updated" and "username" keys.

Why:
The API currently returns only username, role and last updates. Having an easy way to obtain user ID via this API would make automated features more accessible, for example automatic removal from a workspace.

Originally created by @lewismacnow on GitHub (Jun 18, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1711 ### What would you like to see? **What**: This feature request is to add "User ID", expanding the data returned from this Endpoint: https://github.com/Mintplex-Labs/anything-llm/blob/1c473621aa7431778c1a472c038e97fa05a68639/server/endpoints/admin.js#L230 This Endpoint is using the workspaceUsers function, so to achieve this can alter the data returned by this method: https://github.com/Mintplex-Labs/anything-llm/blob/1c473621aa7431778c1a472c038e97fa05a68639/server/models/workspace.js#L222 This update also requires an update to the swagger docs to show the real output here: https://github.com/Mintplex-Labs/anything-llm/blob/1c473621aa7431778c1a472c038e97fa05a68639/server/swagger/openapi.json#L529 To the swagger docs, we should add the "last updated" and "username" keys. **Why:** The API currently returns only username, role and last updates. Having an easy way to obtain user ID via this API would make automated features more accessible, for example automatic removal from a workspace.
yindo added the enhancementfeature request labels 2026-02-22 18:23:12 -05:00
yindo closed this issue 2026-02-22 18:23:12 -05:00
yindo changed title from [FEAT]: Enahance :workspaceId/users API and models/workspace.js workspaceUsers() function to [GH-ISSUE #1711] [FEAT]: Enahance :workspaceId/users API and models/workspace.js workspaceUsers() function 2026-06-05 14:39:04 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1120