Return user id after POST admin/realms/realm/users

100 views
Skip to first unread message

P Terziev

unread,
Jun 23, 2023, 9:10:19 AM6/23/23
to Keycloak User
Is it possible to return a user id after making a request POST admin/realms/realm/users and new user is created?

Right now I get only http response code 201 Created. 

Niko Köbler

unread,
Jun 23, 2023, 9:49:53 AM6/23/23
to Keycloak User
In your response is a "Location" header where to find the newly created user, this points to "/admin/realms/{realm}/users/{userId}"
Reply all
Reply to author
Forward
0 new messages