Hi Bruno,
yes it exists. You can use our model API to add new users and/or roles.
I can see that this is already used inside your UpsSecurityApplication
https://github.com/keycloak/keycloak/blob/master/project-integrations/aer...,
which is doing some modification to master realm with usage of this
model API. Note that you always need to wrap all calls to model API into
KeycloakTransaction as seen in this example.
For more reference on how to retrieve realm, and add users or roles, see
for example unit test here
https://github.com/keycloak/keycloak/blob/master/model/tests/src/test/jav...
(for adding user) and here
https://github.com/keycloak/keycloak/blob/master/model/tests/src/test/jav...
for adding role.
Marek
On 17.6.2014 05:34, Bruno Oliveira wrote:
Good morning guys,
Does exist any way to programatically add new users and roles with
Keycloak?
--
abstractj
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev