Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-3410

Make it easier to create user with initial roles via REST API

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • Minor
    • Resolution: Out of Date
    • 2.1.0.CR1
    • None
    • None
    • None

    Description

      Currently it is quite cumbersome to create users with an initial set of
      realm or client roles since one needs to send multiple requests.

      1) Request for creating the user
      2) Request for setting the realms roles
      3) Request for setting the client roles

      It would be helpful if org.keycloak.services.resources.admin.UsersResource#createUser
      would honor the provided role information in UserRepresentation by inspecting
      the UserRepresentation#realmRoles and UserRepresentation#clientRoles.

      For symmetry reasons it would also be helpful if org.keycloak.services.resources.admin.UsersResource#getUser
      would also return this role mapping information.

      Attachments

        Activity

          People

            Unassigned Unassigned
            thomas.darimont@googlemail.com Thomas Darimont (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: