Skip to content

Instantly share code, notes, and snippets.

@sadrakgunadi
Last active February 25, 2019 06:39
Show Gist options
  • Save sadrakgunadi/4abef0d8cfdbde4d2649427358d06d20 to your computer and use it in GitHub Desktop.
Save sadrakgunadi/4abef0d8cfdbde4d2649427358d06d20 to your computer and use it in GitHub Desktop.
Keycloak-REST API (Add new user)
URL :
http://localhost:8080/auth/admin/realms/master/users
Method : POST
Header :
Bearer token
Body :
{
"email" : "[email protected]",
"firstName" : "user",
"lastName" : "test",
"username" : "usertest",
"enabled" : true,
"attributes": {
"CIFNo": ["11111111"]
},
"requiredActions": [ "UPDATE_PASSWORD" ],
"credentials" :
[
{
"type" : "password",
"value" : "passw0rd"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment