Skip to content

[PLT-4659] [PLT-4608] [PLT-4609] Add bulk invite results to the SDK - #2085

Merged
pablito25sp merged 3 commits into
developfrom
psp/PLT-4659-PLT-4608-PLT-4609
Oct 19, 2026
Merged

pablito25sp merged 3 commits into
developfrom
psp/PLT-4659-PLT-4608-PLT-4609

Conversation

@pablito25sp

@pablito25sp pablito25sp commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Organization.invite_users calls inviteMembers in groups of 100 addresses. Each address gets one result, in the original order. An address longer than 320 characters does not stop the other addresses.

Release this SDK change after inviteMembers is deployed.

Jira: PLT-4659
Jira: PLT-4608
Jira: PLT-4609


Note

Medium Risk
Adds org membership invitation flows and role assignment; behavior depends on new backend inviteMembers, though existing single-invite APIs are unchanged.

Overview
Adds Organization.invite_users for inviting many addresses in one call, backed by the inviteMembers mutation. Callers get an ordered List[InviteResult] with InviteMemberStatus per address (invited, already member, seat limit, invalid email, etc.), including optional reason and invite_id.

Supports workspace-wide org roles or the same project/group role across optional projects and user_groups (objects or ids). The client batches up to 100 addresses per request, blocks over-long emails locally (320 chars), and marks cross-batch duplicates as DUPLICATE so one bad address does not fail the rest. InviteMemberStatus, InviteResult, and invite docs are exported and documented; unit tests cover payloads, batching, validation, and edge cases.

Note: Intended for use after the inviteMembers API is deployed on the server.

Reviewed by Cursor Bugbot for commit 682cb5c. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor

cursor Bot commented Oct 16, 2026

Copy link
Copy Markdown

Current version of PR was reviewed by /review-bugbot on Oct 16, 15:13 GMT-3. It flagged 0 findings.

Bugbot on commit fb72bd4 is skipped.

pablito25sp and others added 3 commits October 19, 2026 10:46
- The SDK calls inviteMembers in groups of 100 addresses.
- Each address gets one result, in the original order.

Jira: https://labelbox.atlassian.net/browse/PLT-4659
Jira: https://labelbox.atlassian.net/browse/PLT-4608
Jira: https://labelbox.atlassian.net/browse/PLT-4609
Co-authored-by: Cursor <cursoragent@cursor.com>
- An address longer than 320 characters gets an invalid result.
- The other addresses in the request are still sent.

Jira: https://labelbox.atlassian.net/browse/PLT-4659
Jira: https://labelbox.atlassian.net/browse/PLT-4608
Jira: https://labelbox.atlassian.net/browse/PLT-4609
Co-authored-by: Cursor <cursoragent@cursor.com>
- The method trims padding before it checks the 320-character limit.
- A valid address is still sent when an earlier padded copy is too long.

Jira: https://labelbox.atlassian.net/browse/PLT-4659
Jira: https://labelbox.atlassian.net/browse/PLT-4608
Jira: https://labelbox.atlassian.net/browse/PLT-4609
Co-authored-by: Cursor <cursoragent@cursor.com>
@pablito25sp
pablito25sp force-pushed the psp/PLT-4659-PLT-4608-PLT-4609 branch from fb72bd4 to 682cb5c Compare October 19, 2026 13:46
@pablito25sp
pablito25sp merged commit 745618a into develop Oct 19, 2026
41 of 44 checks passed
@pablito25sp
pablito25sp deleted the psp/PLT-4659-PLT-4608-PLT-4609 branch October 19, 2026 18:21
@mnoszczak mnoszczak mentioned this pull request Oct 19, 2026

This branch was previously deployed

1 inactive deployment
Test-PyPI — 682cb5c0 Deployed Oct 19, 2026 by pablito25sp via test-pypi #2549
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants