[PR #2842] [MERGED] Add new workspace user management endpoint #4139

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2842
Author: @timothycarambat
Created: 12/16/2024
Status: Merged
Merged: 12/16/2024
Merged by: @timothycarambat

Base: masterHead: 2838-api-workspace-user-mangement


📝 Commits (1)

  • a3b58dc Add new workspace user management endpoint

📊 Changes

4 files changed (+234 additions, -0 deletions)

View changed files

📝 server/endpoints/api/admin/index.js (+128 -0)
📝 server/models/workspace.js (+11 -0)
📝 server/models/workspaceUsers.js (+6 -0)
📝 server/swagger/openapi.json (+89 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #2838

What is in this change?

  • deprecate old endpoint which users workspace ID vs slug
  • Adds way to append userIds to a target workspace as well as totally reset a workspace with a list of user IDs
    Only ids which do not currently have the same userId <> workspaceID overlap will be added to prevent duplicates - there is not db constrain for legacy reasons.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/2842 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 12/16/2024 **Status:** ✅ Merged **Merged:** 12/16/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2838-api-workspace-user-mangement` --- ### 📝 Commits (1) - [`a3b58dc`](https://github.com/Mintplex-Labs/anything-llm/commit/a3b58dc2a2838c608fe380a7bb8d205cabfc753d) Add new workspace user management endpoint ### 📊 Changes **4 files changed** (+234 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/endpoints/api/admin/index.js` (+128 -0) 📝 `server/models/workspace.js` (+11 -0) 📝 `server/models/workspaceUsers.js` (+6 -0) 📝 `server/swagger/openapi.json` (+89 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [x] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #2838 ### What is in this change? - deprecate old endpoint which users workspace ID vs slug - Adds way to `append` userIds to a target workspace as well as totally `reset` a workspace with a list of user IDs Only ids which do not currently have the same userId <> workspaceID overlap will be added to prevent duplicates - there is not db constrain for legacy reasons. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated - [ ] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:13 -05:00
yindo closed this issue 2026-02-22 18:35:13 -05:00
yindo changed title from [PR #2842] Add new workspace user management endpoint to [PR #2842] [MERGED] Add new workspace user management endpoint 2026-06-05 15:17:01 -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#4139