Keycloak Groups API

Manage user groups within a realm

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 21

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /{realm}/users/{userId}/groups Keycloak Get groups for a user #
PUT /{realm}/users/{userId}/groups/{groupId} Keycloak Add a user to a group #
DELETE /{realm}/users/{userId}/groups/{groupId} Keycloak Remove a user from a group #
GET /{realm}/groups Keycloak List groups #
POST /{realm}/groups Keycloak Create a top-level group #
GET /{realm}/groups/{groupId} Keycloak Get a group #
PUT /{realm}/groups/{groupId} Keycloak Update a group #
DELETE /{realm}/groups/{groupId} Keycloak Delete a group #
POST /{realm}/groups/{groupId}/children Keycloak Create a child group #
GET /{realm}/groups/{groupId}/members Keycloak Get members of a group #
GET /admin/realms/{realm}/groups List a realm's group hierarchy · Get group hierarchy. Only `name` and `id` are returned. #
Ask an LLM
“What groups exist in my Keycloak realm?”
“Can I get just the group names and IDs instead of full details?”
Tell an agent
List the groups in realm {realm}.
Show the group hierarchy of {realm} with subgroups counted.
POST /admin/realms/{realm}/groups Create a top-level realm group · create or add a top level realm groupSet or create child #
Ask an LLM
“How do I create a new top-level group in a realm?”
“Can I set a realm role on a group when I create it?”
Tell an agent
Create a group named {name} in realm {realm}.
Create group {name} in {realm} with roles {realmRoles}.
GET /admin/realms/{realm}/groups/count Count the groups in a realm · Returns the groups counts #
Ask an LLM
“How many groups are in my realm?”
“Can I count only the groups whose name matches a search term?”
Tell an agent
Count the groups in realm {realm}.
Count groups in {realm} matching {search}.
GET /admin/realms/{realm}/groups/{group-id} Get a group by ID · Get admin realms by realm groups by group id #
Ask an LLM
“What are the details of one group?”
“Can I look up a group by its ID?”
Tell an agent
Get group {group-id} in realm {realm}.
Show the details of group {group-id} in {realm}.
PUT /admin/realms/{realm}/groups/{group-id} Update a group · Update group, ignores subgroups #
Ask an LLM
“How do I rename an existing group?”
“Can I change a group's parent?”
Tell an agent
Rename group {group-id} in {realm} to {name}.
Set the parent of group {group-id} in {realm} to {parentId}.
DELETE /admin/realms/{realm}/groups/{group-id} Delete a group · Delete admin realms by realm groups by group id #
Ask an LLM
“How do I delete a group?”
“Can I remove a group from a realm?”
Tell an agent destructive · confirm first
Delete group {group-id} from realm {realm}.
Remove the group {group-id} in {realm}.
GET /admin/realms/{realm}/groups/{group-id}/children List a group's subgroups · Return a paginated list of subgroups that have a parent group corresponding to… #
Ask an LLM
“Which groups are subgroups of a given group?”
“Can I search a group's subgroups by name?”
Tell an agent
List the subgroups of group {group-id} in {realm}.
Find subgroups of {group-id} in {realm} matching {search}.
POST /admin/realms/{realm}/groups/{group-id}/children Add a subgroup to a group · Set or create child #
Ask an LLM
“How do I add a subgroup under an existing group?”
“Can I create a child group and set its parent in one call?”
Tell an agent
Create a subgroup named {name} under group {group-id} in {realm}.
Add child group {name} to {group-id} in {realm} with roles {realmRoles}.
GET /admin/realms/{realm}/groups/{group-id}/management/permissions Check a group's client authorization permissions · Return object stating whether client Authorization permissions have been… #
Ask an LLM
“Are client authorization permissions enabled on a group?”
“What scope permissions does a group have?”
Tell an agent
Show the management permissions of group {group-id} in {realm}.
Check whether client authorization is enabled on group {group-id} in {realm}.
PUT /admin/realms/{realm}/groups/{group-id}/management/permissions Set a group's client authorization permissions · Return object stating whether client Authorization permissions have been… #
Ask an LLM
“How do I enable client authorization permissions on a group?”
“Can I change the scope permissions a group has?”
Tell an agent
Set client authorization enabled to {enabled} on group {group-id} in {realm}.
Set scope permissions {scopePermissions} on group {group-id} in {realm}.
GET /admin/realms/{realm}/groups/{group-id}/members List a group's members · Get users Returns a stream of users, filtered according to query parameters #
Ask an LLM
“Who are the users in a group?”
“Can I get only brief member details for a group?”
Tell an agent
List the members of group {group-id} in {realm}.
Show brief details of users in group {group-id} of {realm}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/keycloak:keycloak-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

keycloak-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Keycloak Groups API
  version: '1.0'
  description: 'Operations tagged Groups across 2 of this provider''s published API definitions: keycloak-admin-rest-api-openapi.yml, keycloak-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{host}/admin/realms
  description: Keycloak Admin REST API
  variables:
    host:
      default: localhost:8080
      description: Keycloak server host and port
tags:
- name: Groups
  description: Manage user groups within a realm
paths:
  /{realm}/users/{userId}/groups:
    parameters:
    - $ref: '#/components/parameters/realm'
    - $ref: '#/components/parameters/userId'
    get:
      operationId: getUserGroups
      summary: Keycloak Get groups for a user
      tags:
      - Groups
      responses:
        '200':
          description: A list of group representations
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GroupRepresentation'
      security:
      - bearerAuth: []
    servers:
    - url: https://{host}/admin/realms
      description: Keycloak Admin REST API
      variables:
        host:
          default: localhost:8080
          description: Keycloak server host and port
  /{realm}/users/{userId}/groups/{groupId}:
    parameters:
    - $ref: '#/components/parameters/realm'
    - $ref: '#/components/parameters/userId'
    - $ref: '#/components/parameters/groupId'
    put:
      operationId: addUserToGroup
      summary: Keycloak Add a user to a group
      tags:
      - Groups
      responses:
        '204':
          description: User added to group
      security:
      - bearerAuth: []
    delete:
      operationId: removeUserFromGroup
      summary: Keycloak Remove a user from a group
      tags:
      - Groups
      responses:
        '204':
          description: User removed from group
      security:
      - bearerAuth: []
    servers:
    - url: https://{host}/admin/realms
      description: Keycloak Admin REST API
      variables:
        host:
          default: localhost:8080
          description: Keycloak server host and port
  /{realm}/groups:
    parameters:
    - $ref: '#/components/parameters/realm'
    get:
      operationId: getGroups
      summary: Keycloak List groups
      description: Returns a list of top-level groups in the realm.
      tags:
      - Groups
      parameters:
      - name: search
        in: query
        schema:
          type: string
      - name: first
        in: query
        schema:
          type: integer
      - name: max
        in: query
        schema:
          type: integer
      - name: briefRepresentation
        in: query
        schema:
          type: boolean
          default: true
      responses:
        '200':
          description: A list of group representations
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GroupRepresentation'
      security:
      - bearerAuth: []
    post:
      operationId: createGroup
      summary: Keycloak Create a top-level group
      tags:
      - Groups
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupRepresentation'
      responses:
        '201':
          description: Group created successfully
      security:
      - bearerAuth: []
    servers:
    - url: https://{host}/admin/realms
      description: Keycloak Admin REST API
      variables:
        host:
          default: localhost:8080
          description: Keycloak server host and port
  /{realm}/groups/{groupId}:
    parameters:
    - $ref: '#/components/parameters/realm'
    - $ref: '#/components/parameters/groupId'
    get:
      operationId: getGroup
      summary: Keycloak Get a group
      tags:
      - Groups
      responses:
        '200':
          description: A group representation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupRepresentation'
        '404':
          description: Group not found
      security:
      - bearerAuth: []
    put:
      operationId: updateGroup
      summary: Keycloak Update a group
      tags:
      - Groups
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupRepresentation'
      responses:
        '204':
          description: Group updated successfully
      security:
      - bearerAuth: []
    delete:
      operationId: deleteGroup
      summary: Keycloak Delete a group
      tags:
      - Groups
      responses:
        '204':
          description: Group deleted successfully
      security:
      - bearerAuth: []
    servers:
    - url: https://{host}/admin/realms
      description: Keycloak Admin REST API
      variables:
        host:
          default: localhost:8080
          description: Keycloak server host and port
  /{realm}/groups/{groupId}/children:
    parameters:
    - $ref: '#/components/parameters/realm'
    - $ref: '#/components/parameters/groupId'
    post:
      operationId: createChildGroup
      summary: Keycloak Create a child group
      description: Creates a new subgroup under the specified parent group.
      tags:
      - Groups
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupRepresentation'
      responses:
        '201':
          description: Child group created
      security:
      - bearerAuth: []
    servers:
    - url: https://{host}/admin/realms
      description: Keycloak Admin REST API
      variables:
        host:
          default: localhost:8080
          description: Keycloak server host and port
  /{realm}/groups/{groupId}/members:
    parameters:
    - $ref: '#/components/parameters/realm'
    - $ref: '#/components/parameters/groupId'
    get:
      operationId: getGroupMembers
      summary: Keycloak Get members of a group
      tags:
      - Groups
      parameters:
      - name: first
        in: query
        schema:
          type: integer
      - name: max
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: A list of user representations
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserRepresentation'
      security:
      - bearerAuth: []
    servers:
    - url: https://{host}/admin/realms
      description: Keycloak Admin REST API
      variables:
        host:
          default: localhost:8080
          description: Keycloak server host and port
  /admin/realms/{realm}/groups:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    get:
      tags:
      - Groups
      summary: Get group hierarchy. Only `name` and `id` are returned.
      parameters:
      - name: briefRepresentation
        in: query
        schema:
          default: true
          type: boolean
      - name: exact
        in: query
        schema:
          default: 'false'
          type: boolean
      - name: first
        in: query
        schema:
          format: int32
          type: integer
      - name: max
        in: query
        schema:
          format: int32
          type: integer
      - name: populateHierarchy
        in: query
        schema:
          default: true
          type: boolean
      - name: q
        in: query
        schema:
          type: string
      - name: search
        in: query
        schema:
          type: string
      - name: subGroupsCount
        in: query
        description: 'Boolean which defines whether to return the count of subgroups for each group (default: true'
        schema:
          default: 'true'
          type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GroupRepresentation_2'
      operationId: getAdminRealmsByRealmGroups
      x-operation-id-source: derived
    post:
      tags:
      - Groups
      summary: create or add a top level realm groupSet or create child
      description: This will update the group and set the parent if it exists. Create it and set the parent if the group doesn’t exist.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupRepresentation_2'
      responses:
        '201':
          description: Created
        '204':
          description: No Content
        '400':
          description: Bad Request
        '409':
          description: Conflict
      operationId: postAdminRealmsByRealmGroups
      x-operation-id-source: derived
  /admin/realms/{realm}/groups/count:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    get:
      tags:
      - Groups
      summary: Returns the groups counts
      parameters:
      - name: search
        in: query
        schema:
          type: string
      - name: top
        in: query
        schema:
          default: false
          type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  format: int64
                  type: integer
      operationId: getAdminRealmsByRealmGroupsCount
      x-operation-id-source: derived
  /admin/realms/{realm}/groups/{group-id}:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: group-id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Groups
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupRepresentation_2'
      summary: Get admin realms by realm groups by group id
      x-summary-source: derived
      operationId: getAdminRealmsByRealmGroupsByGroupId
      x-operation-id-source: derived
    put:
      tags:
      - Groups
      summary: Update group, ignores subgroups
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupRepresentation_2'
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
        '409':
          description: Conflict
      operationId: putAdminRealmsByRealmGroupsByGroupId
      x-operation-id-source: derived
    delete:
      tags:
      - Groups
      responses:
        '204':
          description: No Content
      summary: Delete admin realms by realm groups by group id
      x-summary-source: derived
      operationId: deleteAdminRealmsByRealmGroupsByGroupId
      x-operation-id-source: derived
  /admin/realms/{realm}/groups/{group-id}/children:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: group-id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Groups
      summary: Return a paginated list of subgroups that have a parent group corresponding to…
      parameters:
      - name: briefRepresentation
        in: query
        description: 'Boolean which defines whether brief groups representations are returned or not (default: false)'
        schema:
          default: 'false'
          type: boolean
      - name: exact
        in: query
        description: Boolean which defines whether the params "search" must match exactly or not
        schema:
          type: boolean
      - name: first
        in: query
        description: The position of the first result to be returned (pagination offset).
        schema:
          format: int32
          default: '0'
          type: integer
      - name: max
        in: query
        description: The maximum number of results that are to be returned. Defaults to 10
        schema:
          format: int32
          default: '10'
          type: integer
      - name: search
        in: query
        description: A String representing either an exact group name or a partial name, defaults to prefix search.
        schema:
          type: string
      - name: subGroupsCount
        in: query
        description: 'Boolean which defines whether to return the count of subgroups for each subgroup of this group (default: true)'
        schema:
          default: 'true'
          type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GroupRepresentation_2'
      operationId: getAdminRealmsByRealmGroupsByGroupIdChildren
      x-operation-id-source: derived
    post:
      tags:
      - Groups
      summary: Set or create child
      description: This will just set the parent if it exists. Create it and set the parent if the group doesn’t exist.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupRepresentation_2'
      responses:
        '201':
          description: Created
        '204':
          description: No Content
        '400':
          description: Bad Request
        '409':
          description: Conflict
      operationId: postAdminRealmsByRealmGroupsByGroupIdChildren
      x-operation-id-source: derived
  /admin/realms/{realm}/groups/{group-id}/management/permissions:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: group-id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Groups
      summary: Return object stating whether client Authorization permissions have been…
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagementPermissionReference'
      operationId: getAdminRealmsByRealmGroupsByGroupIdManagementPermissions
      x-operation-id-source: derived
    put:
      tags:
      - Groups
      summary: Return object stating whether client Authorization permissions have been…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManagementPermissionReference'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagementPermissionReference'
      operationId: putAdminRealmsByRealmGroupsByGroupIdManagementPermissions
      x-operation-id-source: derived
  /admin/realms/{realm}/groups/{group-id}/members:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: group-id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Groups
      summary: Get users Returns a stream of users, filtered according to query parameters
      parameters:
      - name: briefRepresentation
        in: query
        description: Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.)
        schema:
          type: boolean
      - name: first
        in: query
        description: Pagination offset
        schema:
          format: int32
          type: integer
      - name: max
        in: query
        description: Maximum results size (defaults to 100)
        schema:
          format: int32
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserRepresentation_2'
      operationId: getAdminRealmsByRealmGroupsByGroupIdMembers
      x-operation-id-source: derived
components:
  parameters:
    realm:
      name: realm
      in: path
      required: true
      description: The name of the realm
      schema:
        type: string
    groupId:
      name: groupId
      in: path
      required: true
      description: The UUID of the group
      schema:
        type: string
        format: uuid
    userId:
      name: userId
      in: path
      required: true
      description: The UUID of the user
      schema:
        type: string
        format: uuid
  schemas:
    CredentialRepresentation:
      type: object
      description: Representation of a user credential
      properties:
        id:
          type: string
        type:
          type: string
          description: The credential type (e.g., password, otp)
        value:
          type: string
          writeOnly: true
        temporary:
          type: boolean
          description: If true, user must change the credential on next login
        createdDate:
          type: integer
          format: int64
        userLabel:
          type: string
    GroupRepresentation:
      type: object
      description: Representation of a user group in Keycloak
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
        path:
          type: string
          description: Full path of the group including parent groups
        subGroups:
          type: array
          items:
            $ref: '#/components/schemas/GroupRepresentation'
        attributes:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        realmRoles:
          type: array
          items:
            type: string
        clientRoles:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    UserRepresentation:
      type: object
      description: Representation of a Keycloak user
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        username:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        email:
          type: string
          format: email
        emailVerified:
          type: boolean
        enabled:
          type: boolean
        createdTimestamp:
          type: integer
          format: int64
          readOnly: true
        attributes:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        credentials:
          type: array
          items:
            $ref: '#/components/schemas/CredentialRepresentation'
          writeOnly: true
        requiredActions:
          type: array
          items:
            type: string
        federatedIdentities:
          type: array
          items:
            type: object
            properties:
              identityProvider:
                type: string
              userId:
                type: string
              userName:
                type: string
        realmRoles:
          type: array
          items:
            type: string
        clientRoles:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        groups:
          type: array
          items:
            type: string
        totp:
          type: boolean
        federationLink:
          type: string
        serviceAccountClientId:
          type: string
        notBefore:
          type: integer
    UserProfileAttributeMetadata:
      type: object
      properties:
        name:
          type: string
        displayName:
          type: string
        required:
          type: boolean
        readOnly:
          type: boolean
        annotations:
          type: object
          additionalProperties: {}
        validators:
          type: object
          additionalProperties:
            type: object
            additionalProperties: {}
        group:
          type: string
        multivalued:
          type: boolean
        defaultValue:
          type: string
    CredentialRepresentation_2:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        userLabel:
          type: string
        createdDate:
          format: int64
          type: integer
        secretData:
          type: string
        credentialData:
          type: string
        priority:
          format: int32
          type: integer
        value:
          type: string
        temporary:
          type: boolean
        device:
          type: string
          deprecated: true
        hashedSaltedValue:
          type: string
          deprecated: true
        salt:
          type: string
          deprecated: true
        hashIterations:
          format: int32
          type: integer
          deprecated: true
        counter:
          format: int32
          type: integer
          deprecated: true
        algorithm:
          type: string
          deprecated: true
        digits:
          format: int32
          type: integer
          deprecated: true
        period:
          format: int32
          type: integer
          deprecated: true
        config:
          type: object
          allOf:
          - $ref: '#/components/schemas/MultivaluedHashMapStringString'
          deprecated: true
        federationLink:
          type: string
    UserProfileMetadata:
      type: object
      properties:
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/UserProfileAttributeMetadata'
        groups:
          type: array
          items:
            $ref: '#/components/schemas/UserProfileAttributeGroupMetadata'
    SocialLinkRepresentation:
      type: object
      properties:
        socialProvider:
          type: string
        socialUserId:
          type: string
        socialUsername:
          type: string
    UserVerifiableCredentialRepresentation:
      type: object
      properties:
        credentialScopeName:
          type: string
        credentialConfigurationId:
          type: string
        revision:
          type: string
        createdDate:
          format: int64
          type: integer
        updatedDate:
          format: int64
          type: integer
        userAttributes:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    UserConsentRepresentation:
      type: object
      properties:
        clientId:
          type: string
        grantedClientScopes:
          type: array
          items:
            type: string
        createdDate:
          format: int64
          type: integer
        lastUpdatedDate:
          format: int64
          type: integer
        grantedRealmRoles:
          type: array
          items:
            type: string
          deprecated: true
    GroupRepresentation_2:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        path:
          type: string
        parentId:
          type: string
        subGroupCount:
          format: int64
          type: integer
        subGroups:
          type: array
          items:
            $ref: '#/components/schemas/GroupRepresentation_2'
        attributes:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        realmRoles:
          type: array
          items:
            type: string
        clientRoles:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        access:
          type: object
          additionalProperties:
            type: boolean
    UserProfileAttributeGroupMetadata:
      type: object
      properties:
        name:
          type: string
        displayHeader:
          type: string
        displayDescription:
          type: string
        annotations:
          type: object
          additionalProperties: {}
    ManagementPermissionReference:
      type: object
      properties:
        enabled:
          type: boolean
        resource:
          type: string
        scopePermissions:
          type: object
          additionalProperties:
            type: string
    IssuedVerifiableCredentialRepresentation:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        credentialType:
          type: string
        issuedAt:
          format: int64
          type: integer
        expiresAt:
          format: int64
          type: integer
        clientId:
          type: string
        clientName:
          type: string
        clientBaseUrl:
          type: string
        revision:
          type: string
    UserRepresentation_2:
      type: object
      properties:
        id:
          type: string
        username:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        email:
          type: string
        emailVerified:
          type: boolean
        attributes:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        userProfileMetadata:
          $ref: '#/components/schemas/UserProfileMetadata'
        enabled:
          type: boolean
        self:
          type: string
        origin:
          type: string
        createdTimestamp:
          format: int64
          type: integer
        totp:
          type: boolean
        federationLink:
          type: string
        serviceAccountClientId:
          type: string
        credentials:
          type: array
          items:
            $ref: '#/components/schemas/CredentialRepresentation_2'
        disableableCredentialTypes:
          uniqueItems: true
          type: array
          items:
            type: string
        requiredActions:
          type: array
          items:
            type: string
        federatedIdentities:
          type: array
          items:
            $ref: '#/components/schemas/FederatedIdentityRepresentation'
        realmRoles:
          type: array
          items:
            type: string
        clientRoles:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        clientConsents:
          type: array
          items:
            $ref: '#/components/schemas/UserConsentRepresentation'
        notBefore:
          format: int32
          type: integer
        verifiableCredentials:
          type: array
          items:
            $ref: '#/components/schemas/UserVerifiableCredentialRepresentation'
        issuedVerifiableCredentials:
          type: array
          items:
            $ref: '#/components/schemas/IssuedVerifiableCredentialRepresentation'
        applicationRoles:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          deprecated: true
        socialLinks:
          type: array
          items:
            $ref: '#/components/schemas/SocialLinkRepresentation'
          deprecated: true
        groups:
          type: array
          items:
            type: string
        access:
          type: object
          additionalProperties:
            type: boolean
    MultivaluedHashMapStringString:
      type: object
      additionalProperties:
        type: array
        items:
          type: string
    FederatedIdentityRepresentation:
      type: object
      properties:
        identityProvider:
          type: string
        userId:
          type: string
        userName:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Access token obtained from the Keycloak token endpoint. Use the master realm admin credentials or a service account with appropriate realm-management roles.
x-refined-from:
- keycloak-admin-rest-api-openapi.yml
- keycloak-openapi.json