Support inviting users with custom attributes from UI and CLI - #9797
Open
nishantmonu51 wants to merge 2 commits into
Open
Support inviting users with custom attributes from UI and CLI#9797nishantmonu51 wants to merge 2 commits into
nishantmonu51 wants to merge 2 commits into
Conversation
Attributes can now be passed at invite time (org and project invites) and are stored on the org invite, then applied to the org membership when the invite is accepted. Pending invites' attributes can also be updated via UpdateOrganizationMemberUserAttributes / rill user set-attributes.
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.
Custom attributes previously could only be set with
rill user set-attributesafter the invited user signed up. This carries attributes through the invite lifecycle so they can be set at invite time and are applied automatically on acceptance.attributesJSONB column toorg_invites(migration 0096) with the same validation as member attributes; no change toproject_invitessince attributes are org-membership scoped.AddOrganizationMemberUserandAddProjectMemberUseraccept an optionalattributesfield: stored on the (guest) org invite for new users, applied directly for existing users. Re-inviting updates attributes only when explicitly provided. Setting attributes via the project path requiresManageOrgMembers, matching the permission forUpdateOrganizationMemberUserAttributes.UpdateOrganizationMemberUserAttributes(andrill user set-attributes) now falls back to updating a pending invite, mirroring the existingSetOrganizationMemberUserRolebehavior.rill user addgains--attribute key=valueand--jsonflags for org and project adds.OrganizationInviteexposesattributesfor this.Checklist: