Last active
February 25, 2019 06:39
-
-
Save sadrakgunadi/4abef0d8cfdbde4d2649427358d06d20 to your computer and use it in GitHub Desktop.
Keycloak-REST API (Add new user)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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