Troubleshooting account creation via API in csv source

We have a delimited source that essentially serves as a register for “what samaccountnames have we used ever?” because we delete accounts from AD after a certain period of time. We want to make sure that we don’t re-use a samaccountname again, so the account create process in AD checks against that source.

Anyway, I was testing adding accounts to that list as new AD accounts are created so it’s automatically updated using the create-account endpoint, but I’m not seeing an account be created ever.

Here’s the account schema

Here’s a sample request

{
    "attributes": {
        "samaccountname": "cheekwashere",
        "promotedSamAccountName": "cheekwashere",
        "DN": "cheekwashere",
        "sourceId": "2c9180877a53b75f017a5df63d5f13ea"
    }
}

I get a 202 when submitting, but an account is never created

I figured this out as I was typing out this topic, but I figured it was useful to continue on and post the solution.

The eagle-eyed among you might have realized that the casing for samaccountname between the account schema and request don’t match. This is the problem.

Account attributes are case-sensitive

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.