Update User Data Using API

Ian.H.495
Ian.H.495 Posts: 2 🔍

I've been using this PUT request to update user information for years. On April 12 2022 it stop working and I am receiving the error:
"Validation Error: The Org Defined ID is already assigned to a different user."

I have found a hack fix where I change the Org Defined ID to 00000000.temp run the put request then run it again and change the Org Defined ID back to normal 0000000. This works but its very hacky.

JSON DATA:

"{"OrgDefinedId": "000000000","FirstName": "FirstName","MiddleName": "","LastName": "LastName","ExternalEmail": "email@email.com","UserName": "username","Activation": { "IsActive": true },"Pronouns": null,}"
REQUEST:

/d2l/api/lp/1.35/users/123456
RESPONSE:

'problems' => array(1) { [0] => string(59) "The Org Defined ID is already assigned to a different user." } 'Error' => array(2) { 'response' => string(11) "Bad Request" 'details' => string(77) "Validation Error: The Org Defined ID is already assigned to a different user." }

Tagged:

Answers