web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

adding SystemUser via API returns "The record already exists"

(0) ShareShare
ReportReport
Posted on by 10

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.
I am sending a simple POST to xyzco.operations.dynamics.com/.../SystemUsers with a JSON body like this:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    305,643 Super User 2026 Season 1 on at

    Hi Matthew,

    Have you checked if both the tables SysUserInfo and UserInfo (system table) don't have a record for this user ID?

  • Matthew Baute Profile Picture
    10 on at

    Hi André:

    I do not have access to SQL, only OData / API. 

    Nonetheless, I receive the error if I enter any brand new email address that I make up on the spot.  Which doesn't make any sense.  How could the record already exist if I just entered it for the first time?

    thanks,
    Matthew

  • André Arnaud de Calavon Profile Picture
    305,643 Super User 2026 Season 1 on at

    Hi Matthew,

    Did you also provide a not used user ID when you enter new email addresses?

  • Suggested answer
    Matthew Baute Profile Picture
    10 on at

    Finally figured it out.  Here is the body for the SystemUser POST:

    { 
        "UserID": "jsmith",
        "UserName": "John Smith",
        "NetworkDomain": "https://sts.windows.net/",
        "Email": "jsmith@mycorp.com",
        "Alias": "jsmith@mycorp.com", --> this is the related "Person" and must exist in AD
        "Company": "MYCORP",
        "Enabled": true,
        "UserInfo_language": "en-us",
        "Helplanguage": "en-us",
        "AccountType": "ClaimsUser"
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 668 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 630 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 581

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans