function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dr. Thomas MillerDr. Thomas Miller 

SCIM: Cannot create a new user with both Phone and MobilePhone.

When you try to create a user and send
 
    "phoneNumbers":[
        {
            "type": "work",
            "value": "02111234567"
        },
        {
            "type": "mobile",
            "value": "01721234567"
        }
    ]
 
you get an error
 
{
    "schemas": "[\"urn:ietf:params:scim:api:messages:2.0:Error\"]",
    "detail": "INVALID:only_a_single_phone_is_allowed",
    "status": 409
}
 
This happens although you can send either a work number (stored in Phone) or a mobile number (stored in MobilePhone) - and a GET call returns both numbers when the are set.
So the create (POST) or full update (PUT) request should be able to accept two numbers as well.
Sushant Thakur 23Sushant Thakur 23
Hi Thomas,

This is working as documented. Please check below article and mentioned note.
https://help.salesforce.com/s/articleView?id=sf.identity_scim_update_users.htm&type=5

Thank you,
Sushant Thakur