Bulk User Import

895 views
Skip to first unread message

Test Kumar

unread,
Feb 15, 2022, 2:01:25 AM2/15/22
to Keycloak Dev
Hello Team,

I want to insert more than one user at a time so I am using partial Import api for that but getting 500 internal server errors as a response of api. 
API - /auth/admin/realms/demo/partialImport
Payload- {
  "users": [{
    "username" : "gamer124",
    "enabled": true,
    "credentials" : [{ 
      "type" : "mad@123",
      "value" : "mad@123" 
    }],
    "realmRoles": ["user"],
    "clientRoles": {
      "account": ["view-profile", "manage-account"]
    }
  }]
}

Kindly suggest to me what is wrong here.

Thanks & Regards,
Test Kumar

Fesenmeyer Daniel (IOB/PAU2)

unread,
Feb 15, 2022, 5:26:45 AM2/15/22
to Test Kumar, Keycloak Dev

Hi Test Kumar,

 

In case of a status 500 response it is always good to have a look at the Keycloak server logs – there you will find more information what went wrong.

 

Having a quick look at your payload: I’m just wondering whether you really have credentials of type “mad@123” in your system? That looks wrong to me – maybe it should just be “password”?

 

Furthermore, user questions like yours should be better asked on the User Mailing List, not on the Developer Mailing List.

If you ask your questions there, it might also help other Keycloak users:  https://groups.google.com/g/keycloak-user

 

 

Best regards

Daniel Fesenmeyer


Product Area User Management (IOB/PAU2)
Bosch.IO GmbH | Ziegelei 7 | 88090 Immenstaad | GERMANY | www.bosch.io
Tel. +49 7545 202-360 | Telefax +49 7545 202-301 | Daniel.F...@bosch.io


Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Stefan Koss; Geschäftsführung: Dr. Andreas Nauerz, Yvonne Reckling

--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/229f8772-f61e-47c8-ba9f-08e2b7bd605fn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages