fix: scim use first email or phone if no primary is set (#9236)

# Which Problems Are Solved
- scim v2 only maps the primary phone/email to the zitadel user, this
does not work if no primary is set

# How the Problems Are Solved
- the first phone / email is mapped if no primary is available

# Additional Context
Part of #8140

Co-authored-by: Stefan Benz <[email protected]>
This commit is contained in:
Lars
2025-01-29 09:18:00 +00:00
committed by GitHub
co-authored by Stefan Benz
parent a59c6b9f84
commit 21f00c1e6b
3 changed files with 60 additions and 0 deletions
@@ -0,0 +1,21 @@
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "acmeUser1",
"name": {
"familyName": "Ross",
"givenName": "Bethany"
},
"emails": [
{
"value": "[email protected]"
}
],
"phoneNumbers": [
{
"value": "+41 71 123 45 67",
"type": "work"
}
]
}