[PR #12394] [MERGED] Feature/remote group autocreate #13961

Closed
opened 2025-12-29 23:21:47 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12394
Author: @jschewebbn
Created: 4/29/2023
Status: Merged
Merged: 5/12/2023
Merged by: @jeremystretch

Base: developHead: feature/remote-group-autocreate


📝 Commits (2)

  • be00b78 Add REMOTE_AUTH_AUTOCREATE_GROUPS
  • 874d1c4 Fix naming of parameter

📊 Changes

3 files changed (+50 additions, -2 deletions)

View changed files

📝 netbox/netbox/authentication.py (+5 -2)
📝 netbox/netbox/settings.py (+1 -0)
📝 netbox/netbox/tests/test_authentication.py (+44 -0)

📄 Description

Closes: https://github.com/netbox-community/netbox/issues/7671
When REMOTE_AUTH_AUTOCREATE_GROUPS is True, Netbox will create groups
referenced in the REMOTE_AUTH_GROUP_HEADER that don't exist in the
database.

This is a rebase of https://github.com/netbox-community/netbox/pull/8603 onto the current develop with the fix noted by @kkthxbye-code.

I note that REMOTE_AUTH_AUTO_CREATE_GROUPS is plural while REMOTE_AUTH_AUTO_CREATE_USER is singular. Would the maintainers like the group parameter to be singular as well?


🔄 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/netbox-community/netbox/pull/12394 **Author:** [@jschewebbn](https://github.com/jschewebbn) **Created:** 4/29/2023 **Status:** ✅ Merged **Merged:** 5/12/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `feature/remote-group-autocreate` --- ### 📝 Commits (2) - [`be00b78`](https://github.com/netbox-community/netbox/commit/be00b7834e0ff6a505b8b60cb698d3bdf35639ff) Add REMOTE_AUTH_AUTOCREATE_GROUPS - [`874d1c4`](https://github.com/netbox-community/netbox/commit/874d1c429407180c73b45f6684bc36abebb7b0b1) Fix naming of parameter ### 📊 Changes **3 files changed** (+50 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/authentication.py` (+5 -2) 📝 `netbox/netbox/settings.py` (+1 -0) 📝 `netbox/netbox/tests/test_authentication.py` (+44 -0) </details> ### 📄 Description Closes: https://github.com/netbox-community/netbox/issues/7671 When REMOTE_AUTH_AUTOCREATE_GROUPS is True, Netbox will create groups referenced in the REMOTE_AUTH_GROUP_HEADER that don't exist in the database. This is a rebase of https://github.com/netbox-community/netbox/pull/8603 onto the current develop with the fix noted by @kkthxbye-code. I note that REMOTE_AUTH_AUTO_CREATE_GROUPS is plural while REMOTE_AUTH_AUTO_CREATE_USER is singular. Would the maintainers like the group parameter to be singular as well? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:21:47 +01:00
adam closed this issue 2025-12-29 23:21:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13961