Repository navigation
Conversation
… User Group links The "Add User Group" links in the device group and device Users views skipped user groups that have a membershipType (OIDC/LDAP synced groups). The server only sends membershipType to callers with the user group site right, so site admins never got the link for synced groups while mesh admins did. Linking a synced group to a device group is allowed by the server, so stop filtering on membershipType in these three places (in both the default and default3 views). Fixes Ylianst#8330 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8330
What
The "Add User Group" links in the device group Users view and the device Users view skipped any user group that has a
membershipType(OIDC/LDAP synced groups). This removes that condition in the three places it was used, in bothviews/default.handlebarsandviews/default3.handlebars.Why
The
usergroupscommand only includesmembershipTypefor callers with the user group site right (meshuser.js, full objects), while other callers get a limited{ name }projection. So the client-side filter hid synced groups from site admins but not from mesh admins. The server'saddmeshuserdoes not restrict synced groups, so mesh admins could link them and site admins could not. Linking a directory-synced group to a device group is the usual way to grant directory-managed groups access, so I dropped the filter instead of adding it to the limited projection.The user-side lists (adding a user to a user group, around
currentUser) are left unchanged. Synced group membership is managed by the directory there, and the server already refuses those changes.Verification
membershipTypeconditions per file are removed (6 lines in total).Not covered
I did not run MeshCentral with OIDC group sync, so I did not click through the UI. The change is untested in a browser.
🤖 Generated with Claude Code