[PR #1694] [MERGED] 1693 get workspace users api #3745

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1694
Author: @lewismacnow
Created: 6/15/2024
Status: Merged
Merged: 6/17/2024
Merged by: @timothycarambat

Base: masterHead: 1693-GET-workspaceUsers-API


📝 Commits (2)

  • dcd284b Enhance API - add GET for users with access to workspace
  • c6eba14 Update Swagger for users with access to workspace

📊 Changes

2 files changed (+107 additions, -2 deletions)

View changed files

📝 server/endpoints/api/admin/index.js (+53 -1)
📝 server/swagger/openapi.json (+54 -1)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #1693

What is in this change?

Adds API endpoint and swagger docs to allow reading workspace membership by returning user ids who have access

It makes use of he existing workspaceUsers function:

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

Adding the endpoint:
${API_BASE}/admin/workspaces/${workspaceId}/users,

Additional Information

Although this adds only one function - Please review carefully - I would not say it is fully tested.

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/1694 **Author:** [@lewismacnow](https://github.com/lewismacnow) **Created:** 6/15/2024 **Status:** ✅ Merged **Merged:** 6/17/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `1693-GET-workspaceUsers-API` --- ### 📝 Commits (2) - [`dcd284b`](https://github.com/Mintplex-Labs/anything-llm/commit/dcd284b65c640575bb08782e50a31216ab3d4194) Enhance API - add GET for users with access to workspace - [`c6eba14`](https://github.com/Mintplex-Labs/anything-llm/commit/c6eba14e5416b121721d18f52d9d1d6e93b5507b) Update Swagger for users with access to workspace ### 📊 Changes **2 files changed** (+107 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/endpoints/api/admin/index.js` (+53 -1) 📝 `server/swagger/openapi.json` (+54 -1) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [x] 🔨 chore - [ ] 📝 docs ### Relevant Issues resolves #1693 ### What is in this change? Adds API endpoint and swagger docs to allow reading workspace membership by returning user ids who have access It makes use of he existing workspaceUsers function: https://github.com/Mintplex-Labs/anything-llm/blob/172543e1cdf5e8b4ae6603f61ddd98f0b59c8aba/server/models/workspace.js#L222 Adding the endpoint: `${API_BASE}/admin/workspaces/${workspaceId}/users`, ### Additional Information Although this adds only one function - **Please review carefully** - I would not say it is fully tested. ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [x] 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:34:24 -05:00
yindo closed this issue 2026-02-22 18:34:24 -05:00
yindo changed title from [PR #1694] 1693 get workspace users api to [PR #1694] [MERGED] 1693 get workspace users api 2026-06-05 15:15:00 -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#3745