Skip to content

Instantly share code, notes, and snippets.

@edwint88
Created May 8, 2019 21:32
Show Gist options
  • Select an option

  • Save edwint88/7a0ae2d578e979a1fe9f80bc743fae4e to your computer and use it in GitHub Desktop.

Select an option

Save edwint88/7a0ae2d578e979a1fe9f80bc743fae4e to your computer and use it in GitHub Desktop.
# Method: POST
# Headers
# Authorization Bearer eyJhbGciO... (access token)
# Content-Type: application/json
# Body
# {
# "username": "test-user",
# "groups": ["Comp1"], // doesn't work, even if it is in the docs
# "lastName": "test",
# "firstName": "joe",
# "email": "test@mail.de",
# "attributes": {"test": "attr"},
# "id": "c946d741-b2d6-44b6-9720-943614396faa", // doesn't work
# "enabled": true,
# "credentials":[{
# "type": "password",
# "value": "test",
# "temporary": false
# }],
# "realmRoles": "Tableau" // doesn't work
# }
http://127.0.0.1:8088/auth/admin/realms/app/users
@gogomarine

Copy link
Copy Markdown

Thank you

@prudhvi4u

Copy link
Copy Markdown
"realmRoles": "Tableau" // doesn't work

Is there any way to update realmRoles through json file?

@ingGhost

Copy link
Copy Markdown

is this still work with keycloak version 16?

@edwint88

Copy link
Copy Markdown
Author

I didn't test for the newer versions (I think this was for Keycloak 9.0.0)

@jtheuerkauf-neubus

Copy link
Copy Markdown

Lifesaver! Couldn't figure out how initial credentials were supposed to fit (i had been stuffing them into attributes by accident).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment