Harvey Esparcia
10/06/2025, 5:42 AMloginIds, since phone numbers were not previously added as login IDs.
Now we want to enable account merging functionality.
Problem:
Even if an old account has the same phone number, it will not be merged, because the old loginIds did not originally include the phone number.
I tried using the following request to add the phone number to the `loginIds`:
curl -X POST "https://api.descope.com/v1/mgmt/user/update/loginid" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"loginId": "string",
"newLoginId": "string"
}'
Example payload:
{
"loginId": [
"sample@sample.com"
],
"newLoginId": [
"sample@sample.com",
"+170000xxxxx"
]
}
However, according to the documentation, even if we add the phone number to the loginIds, the merging will still not work,
since it requires the parameters:
"addToLoginIDs": true,
"onMergeUseExisting": trueMeir Wahnon
10/06/2025, 5:42 AMRahul Rijhwani
10/06/2025, 5:43 AMHarvey Esparcia
10/06/2025, 5:44 AMHarvey Esparcia
10/06/2025, 6:16 AMHarvey Esparcia
10/06/2025, 6:16 AMHarvey Esparcia
10/06/2025, 7:06 AMRahul Rijhwani
10/06/2025, 7:48 AMHarvey Esparcia
10/06/2025, 8:22 AM