Access API Documentation | Access Technical Support Portal | Email: support@validic.com
Validic Support Center
Click Here for Latest System Status

How to resolve 409 Conflict when Provisioning Users

Last Updated: Mar 16, 2018 04:35PM EDT
Q: I am getting a 409 error when provisioning a user, how do I resolve this?

There may be cases where you were unable to save the user's Validic ID and Access Token during User Provisioning. When you try to provision the same user using the same 'uid', you get a 409 Conflict Response. Consider the following example:

User Provisioning:
POST https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users.json
-H 'Content-Type: application/json'
{
    "user": {
        "uid": "12345"
    },
    "access_token": "{ORGANIZATION_ACCESS_TOKEN}"
}
409
{
    "code": 409,
    "message": "Conflict",
    "errors": "User already exists"
}
The error results from using the same 'uid' of "12345" which was already used to provision a user in your organization. To resolve this, you need to remove the user with that 'uid' or change the existing user's 'uid' in order to be able to provision the user again.

Deleting a User Example
DELETE https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users.json
-H 'Content-Type: application/json'
{
    "uid": "12345",
    "access_token": "{ORGANIZATION_ACCESS_TOKEN}"
}
200
{
    "code": 200,
    "message": "Ok"
}​
Changing a User's UID Example
PUT https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users/{USER_ID}.json
-H 'Content-Type: application/json'
{
    "user": {
        "uid": "54321"
    },
    "access_token": "{ORGANIZATION_ACCESS_TOKEN}"
}​
200
{
    "code": 200,
    "message": "The user has been successfully updated",
    "user": {
        "_id": "5544b41970ff411d8b000018",
        "uid": "54321",
        "profile": {
            "gender": null,
            "height": null,
            "location": null,
            "weight": null,
            "birth_year": null
        }
    }
}
See also this Validic Education Training Video on User Provisioning.
 
vlogo
bc869bd0260c3360eac041337ba489f0@validic.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete