We currently have a situation where users’ account...
# ask-a-descoper
h
We currently have a situation where users’ accounts do not contain phone numbers in their
loginIds
, 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`:
Copy code
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:
Copy code
{
  "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:
Copy code
"addToLoginIDs": true,
"onMergeUseExisting": true
m
@Rahul Rijhwani can you follow up here ?
🙌 1
r
Let me take a look @Meir Wahnon
h
thank you
image.png
image.png
👀 1
@Rahul Rijhwani is there any other way to still merge those users with no phone on there loginIds? merge via phone only
r
Hi @Harvey Esparcia I am investigating this, Give me sometime I'll get back to you on this ASAP.
h
thank you @Rahul Rijhwani