[keycloak-user] Admin Client Create User
Marek Posolda
mposolda at redhat.com
Thu May 21 10:51:55 EDT 2015
Hmm... Isn't this method on UserResource useful for this:
https://github.com/keycloak/keycloak/blob/master/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java#L46
?
For permanent password, I think you can just set flag
"setTemporary(false)" on CredentialRepresentation.
Marek
On 21.5.2015 15:17, Scott Rossillo wrote:
> Thanks the admin client in 1.2.0.Final doesn't have a way to make that
> call. I can do it manually but is there a way to make the password
> permanent, not temporary? This is for account migration purposes.
>
> On Thursday, May 21, 2015, Marek Posolda <mposolda at redhat.com
> <mailto:mposolda at redhat.com>> wrote:
>
> Hi,
>
> Once you create user through admin endpoint, you will need to call
> another rest endpoint to update his password. It should be this
> endpoint:
> http://keycloak.github.io/docs/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/reset-password/index.html
>
> Marek
>
> On 21.5.2015 01:06, Scott Rossillo wrote:
>
> Hi,
>
> We’re using the admin client to create users in 1.2.0.Final.
> The call works, but the credentials are missing.
>
> List<CredentialRepresentation> credentialsList = new
> ArrayList<>();
> CredentialRepresentation credentials = new
> CredentialRepresentation();
>
> credentials.setType(CredentialRepresentation.PASSWORD);
> credentials.setValue(appUser.getPassword());
>
> credentialsList.add(credentials);
> user.setCredentials(createCredentials(source));
>
> I see the credentials getting passed on the create user HTTP
> POST, but the CREDENTIALS table doesn’t contain an entry for
> the user.
>
> Any suggestions?
>
> Best,
> Scott
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150521/c812e30f/attachment.html
More information about the keycloak-user
mailing list