Commit 6f9a16d
fix(scim-users): use SCIM filter path when updating email (#15)
Slack's SCIM PATCH rejects `replace` with path=emails and an array
value containing a primary entry:
SCIM API error (400): Multi-valued attributes can not have more
than one primary element
RFC 7644 §3.5.2 specifies that `replace` on a multi-valued attribute
replaces the whole array, but Slack's implementation appears to treat
it as an add/merge. Using the filter path `emails[primary eq true].value`
updates only the primary email's value and is accepted.
Verified against a live Enterprise Grid workspace.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d9358a2 commit 6f9a16d
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
0 commit comments