Search code examples
keycloakkeycloak-services

Error facing while importing user from json file in keycloak


I am trying to import users in keycloak through the below json file via Keycloak UI admin console:

[{
"Email":"abc@abc.com",
"Username":"abc@abc.com",
"FirstName":"ABC",
"LastName":"XYZ",
}]

but I am getting the error message as: Error! Unable to parse JSON file.

Is there some issue with my json file?


Solution

  • You have a trailing "," (comma) in your JSON.

    [{
    "Email":"abc@abc.com",
    "Username":"abc@abc.com",
    "FirstName":"ABC",
    "LastName":"XYZ", <-- this is wrong
    }]