I am trying to create a new SystemUser in our D365 system. I can do so through the standard UI, but when trying to do so through the API I receive this message:
"Write failed for table row of type 'SystemUserEntity'. Infolog: Info: Cannot create a record in User information (SysUserInfo). User ID: mytest.\nThe record already exists.."
The user is definitely not existing.
{
"UserID": "mytest",
"Alias": "mytest@swtc.edu",
"UserName": "Just A Test",
"Company": "xyzco",
"EmailProviderID": "SMTP",
"Enabled": true,
"UserInfo_language": "en-us",
"Helplanguage": "en-us",
"AccountType": "ClaimsUser"
}
Any ideas what I may be doing wrong? I am able to successfully POST to /data/WorkerContacts and /data/WorkerPostalAddressesV2 to create new emails and postal addresses via the API. But POST to /data/SystemUsers gives the already exists error.
thanks,
Matthew