[PR #1991] [MERGED] feature: Support single organization policy #6681

Closed
opened 2026-03-07 21:03:02 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/1991
Author: @domdomegg
Created: 9/24/2021
Status: Merged
Merged: 10/8/2021
Merged by: @dani-garcia

Base: mainHead: domdomegg/single-organization-policy


📝 Commits (1)

  • d014eed feature: Support single organization policy

📊 Changes

11 files changed (+97 additions, -13 deletions)

View changed files

📝 src/api/core/ciphers.rs (+1 -1)
📝 src/api/core/emergency_access.rs (+1 -1)
📝 src/api/core/organizations.rs (+56 -0)
📝 src/api/identity.rs (+2 -2)
📝 src/config.rs (+1 -0)
📝 src/db/models/org_policy.rs (+5 -6)
📝 src/db/models/organization.rs (+1 -1)
📝 src/db/models/user.rs (+2 -2)
📝 src/mail.rs (+12 -0)
src/static/templates/email/send_single_org_removed_from_org.hbs (+5 -0)
src/static/templates/email/send_single_org_removed_from_org.html.hbs (+11 -0)

📄 Description

This adds back-end support for the single organization policy.

This is listed on the wiki as a feature in scope for Vaultwarden that a contribution would be welcome for.

NB: this is not already done by #1955, despite that PR enabling the enum for it (it only implements the RequireSso policy).


🔄 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/dani-garcia/vaultwarden/pull/1991 **Author:** [@domdomegg](https://github.com/domdomegg) **Created:** 9/24/2021 **Status:** ✅ Merged **Merged:** 10/8/2021 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `domdomegg/single-organization-policy` --- ### 📝 Commits (1) - [`d014eed`](https://github.com/dani-garcia/vaultwarden/commit/d014eede9a7fa85e4f809656a7f6aed61caafff0) feature: Support single organization policy ### 📊 Changes **11 files changed** (+97 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/ciphers.rs` (+1 -1) 📝 `src/api/core/emergency_access.rs` (+1 -1) 📝 `src/api/core/organizations.rs` (+56 -0) 📝 `src/api/identity.rs` (+2 -2) 📝 `src/config.rs` (+1 -0) 📝 `src/db/models/org_policy.rs` (+5 -6) 📝 `src/db/models/organization.rs` (+1 -1) 📝 `src/db/models/user.rs` (+2 -2) 📝 `src/mail.rs` (+12 -0) ➕ `src/static/templates/email/send_single_org_removed_from_org.hbs` (+5 -0) ➕ `src/static/templates/email/send_single_org_removed_from_org.html.hbs` (+11 -0) </details> ### 📄 Description This adds back-end support for the [single organization policy](https://bitwarden.com/help/article/policies/#single-organization). This is listed on [the wiki](https://github.com/dani-garcia/vaultwarden/wiki) as a feature in scope for Vaultwarden that a contribution would be welcome for. NB: this is not already done by #1955, despite that PR enabling the enum for it (it only implements the RequireSso policy). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:03:02 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#6681