Gravitee Users API

Manage Gravitee users

GitHub OpenAPI

Operations 26

GET /users/{userId}/apis List APIs for a User #
GET /users/{userId}/applications List Applications for a User #
GET /organizations/{orgId}/environments/{envId}/search/users Search for users #
GET /organizations/{orgId}/environments/{envId}/users Search for users using the search engine #
POST /organizations/{orgId}/environments/{envId}/users Create a user #
GET /organizations/{orgId}/environments/{envId}/users/{userId} Retrieve a user #
DELETE /organizations/{orgId}/environments/{envId}/users/{userId} Delete a user #
POST /organizations/{orgId}/environments/{envId}/users/{userId}/_process Process a user registration by accepting or rejecting it #
GET /organizations/{orgId}/environments/{envId}/users/{userId}/avatar Get the user's avatar #
POST /organizations/{orgId}/environments/{envId}/users/{userId}/changePassword Change user password after a reset #
GET /organizations/{orgId}/environments/{envId}/users/{userId}/groups List of groups the user belongs to #
GET /organizations/{orgId}/environments/{envId}/users/{userId}/memberships List of memberships the user belongs to #
POST /organizations/{orgId}/environments/{envId}/users/{userId}/resetPassword Reset the user's password #
PUT /organizations/{orgId}/environments/{envId}/users/{userId}/roles Update user roles #
GET /organizations/{orgId}/search/users Search for users #
GET /organizations/{orgId}/users Search for users using the search engine #
POST /organizations/{orgId}/users Create a user #
GET /organizations/{orgId}/users/{userId} Retrieve a user #
DELETE /organizations/{orgId}/users/{userId} Delete a user #
POST /organizations/{orgId}/users/{userId}/_process Process a user registration by accepting or rejecting it #
GET /organizations/{orgId}/users/{userId}/avatar Get the user's avatar #
POST /organizations/{orgId}/users/{userId}/changePassword Change user password after a reset #
GET /organizations/{orgId}/users/{userId}/groups List of groups the user belongs to #
GET /organizations/{orgId}/users/{userId}/memberships List of memberships the user belongs to #
POST /organizations/{orgId}/users/{userId}/resetPassword Reset the user's password #
PUT /organizations/{orgId}/users/{userId}/roles Update user roles 1 #

Documentation

Specifications

SDKs

Other Resources

🔗
ChangeLog
https://documentation.gravitee.io/apim/release-information/changelog
🔗
License
https://github.com/gravitee-io/gravitee-api-management/blob/master/LICENSE.txt
🔗
SDKs
https://github.com/gravitee-io/gravitee-clients-sdk
🔗
SDKs
https://github.com/gravitee-io/terraform-provider-apim
🔗
CLI
https://github.com/gravitee-io/graviteeio-cli
🔗
KubernetesOperator
https://github.com/gravitee-io/gravitee-kubernetes-operator
🔗
HelmChart
https://github.com/gravitee-io/helm-charts
🔗
DockerImage
https://hub.docker.com/r/graviteeio/apim-gateway
🔗
JSONLDContext
https://artifacts.apis.io/gravitee/json-ld/gravitee-context.jsonld
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_apidefinitions.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_apiv4definitions.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_apiresources.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_applications.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_subscriptions.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_managementcontexts.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_sharedpolicygroups.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_groups.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_notifications.yaml
🔗
Plans
https://artifacts.apis.io/gravitee/plans/gravitee-plans-pricing.yml
🔗
FinOps
https://artifacts.apis.io/gravitee/finops/gravitee-finops.yml
🔗
Reference
https://documentation.gravitee.io/am/reference/am-api-reference
🔗
ChangeLog
https://documentation.gravitee.io/am/releases-and-changelog/release-notes
🔗
License
https://github.com/gravitee-io/gravitee-access-management/blob/master/LICENSE
🔗
SDKs
https://github.com/gravitee-io/gravitee-access-management/tree/master/gravitee-am-management-api-sdk-java
🔗
HelmChart
https://github.com/gravitee-io/helm-charts/tree/master/helm/gravitee-am
🔗
DockerImage
https://hub.docker.com/r/graviteeio/am-gateway

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/gravitee:gravitee-users-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

gravitee-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Gravitee.io APIM Management Users API
  description: 'The Gravitee API Management (APIM) Management API is the administrative

    control plane for the Gravitee platform. It exposes endpoints to create

    and deploy APIs (both v2 "Gravitee definition v2" and v4 message-oriented

    APIs), manage plans, applications, subscriptions, API products,

    analytics, logs, users, plugins, UI customization, environments, and

    organization-level installation.


    This consolidated specification is synthesized from the upstream v2

    OpenAPI fragments in `gravitee-apim-rest-api-management-v2-rest`

    (`openapi-apis.yaml`, `openapi-environments.yaml`,

    `openapi-analytics.yaml`, `openapi-api-products.yaml`,

    `openapi-installation.yaml`, `openapi-plugins.yaml`,

    `openapi-users.yaml`, `openapi-logs.yaml`, `openapi-ui.yaml`).'
  contact:
    name: GraviteeSource Team
    url: https://gravitee.io
    email: team-apim@graviteesource.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 2.0.0
servers:
- url: https://{host}/management/v2
  description: APIM Management API v2 - default base URL
  variables:
    host:
      default: apim.example.com
      description: Hostname of the Gravitee APIM Management API
- url: https://{host}/management/v2/organizations/{orgId}
  description: APIM Management API v2 - per-organization base URL
  variables:
    host:
      default: apim.example.com
    orgId:
      default: DEFAULT
security:
- BasicAuth: []
- CookieAuth: []
- BearerAuth: []
tags:
- name: Users
  description: Manage Gravitee users
paths:
  /users/{userId}/apis:
    get:
      tags:
      - Users
      operationId: listUserApis
      summary: List APIs for a User
      parameters:
      - in: path
        name: userId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: User APIs
  /users/{userId}/applications:
    get:
      tags:
      - Users
      operationId: listUserApplications
      summary: List Applications for a User
      parameters:
      - in: path
        name: userId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: User applications
  /organizations/{orgId}/environments/{envId}/search/users:
    get:
      tags:
      - Users
      summary: Search for users
      operationId: searchUsers
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List of users
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SearchableUser'
        '400':
          description: Bad query parameter
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users:
    get:
      tags:
      - Users
      summary: Search for users using the search engine
      description: User must have the ORGANIZATION_USERS[READ] permission to use this service
      operationId: getAllUsers
      parameters:
      - name: q
        in: query
        schema:
          type: string
      - name: size
        in: query
        schema:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
          default: 20
      - name: page
        in: query
        schema:
          minimum: 1
          type: integer
          format: int32
          default: 1
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List users matching the query criteria
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserPageResult'
        '500':
          description: Internal server error
    post:
      tags:
      - Users
      summary: Create a user
      description: User must have the ORGANIZATION_USERS[CREATE] permission to use this service
      operationId: createUser
      parameters:
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewPreRegisterUserEntity'
      responses:
        '200':
          description: List users matching the query criteria
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEntity'
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users/{userId}:
    get:
      tags:
      - Users
      summary: Retrieve a user
      description: User must have the ORGANIZATION_USERS[READ] permission to use this service
      operationId: getUser
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: A user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEntity'
        '404':
          description: User not found
        '500':
          description: Internal server error
    delete:
      tags:
      - Users
      summary: Delete a user
      description: User must have the ORGANIZATION_USERS[DELETE] permission to use this service
      operationId: deleteUser
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '204':
          description: User successfully deleted
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users/{userId}/_process:
    post:
      tags:
      - Users
      summary: Process a user registration by accepting or rejecting it
      operationId: validateRegistration
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          '*/*':
            schema:
              type: boolean
      responses:
        '200':
          description: Processed user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEntity'
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users/{userId}/avatar:
    get:
      tags:
      - Users
      summary: Get the user's avatar
      operationId: getUserAvatar
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: User's avatar
          content:
            '*/*':
              schema:
                type: string
                format: binary
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users/{userId}/changePassword:
    post:
      tags:
      - Users
      summary: Change user password after a reset
      description: User registration must be enabled
      operationId: finalizeResetPassword
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/ResetPasswordUserEntity'
      responses:
        '200':
          description: User successfully updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEntity'
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users/{userId}/groups:
    get:
      tags:
      - Users
      summary: List of groups the user belongs to
      description: User must have the ORGANIZATION_USERS[READ] permission to use this service
      operationId: getUserGroups
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List of user groups
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserGroupEntity'
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users/{userId}/memberships:
    get:
      tags:
      - Users
      summary: List of memberships the user belongs to
      description: User must have the ORGANIZATION_USERS[READ] permission to use this service
      operationId: getUserMemberships
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: type
        in: query
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List of user memberships
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserMembershipList'
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users/{userId}/resetPassword:
    post:
      tags:
      - Users
      summary: Reset the user's password
      description: User must have the ORGANIZATION_USERS[UPDATE] permission to use this service
      operationId: resetUserPassword
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '204':
          description: User's password reset
        '400':
          description: reset page URL must not be null
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/users/{userId}/roles:
    put:
      tags:
      - Users
      operationId: updateUserRoles
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/UserReferenceRoleEntity'
        required: true
      responses:
        default:
          description: default response
          content:
            '*/*': {}
      summary: Update user roles
      x-summary-source: derived
  /organizations/{orgId}/search/users:
    get:
      tags:
      - Users
      summary: Search for users
      operationId: searchUsers_1
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List of users
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SearchableUser'
        '400':
          description: Bad query parameter
        '500':
          description: Internal server error
  /organizations/{orgId}/users:
    get:
      tags:
      - Users
      summary: Search for users using the search engine
      description: User must have the ORGANIZATION_USERS[READ] permission to use this service
      operationId: getAllUsers_1
      parameters:
      - name: q
        in: query
        schema:
          type: string
      - name: size
        in: query
        schema:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
          default: 20
      - name: page
        in: query
        schema:
          minimum: 1
          type: integer
          format: int32
          default: 1
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List users matching the query criteria
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserPageResult'
        '500':
          description: Internal server error
    post:
      tags:
      - Users
      summary: Create a user
      description: User must have the ORGANIZATION_USERS[CREATE] permission to use this service
      operationId: createUser_1
      parameters:
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewPreRegisterUserEntity'
      responses:
        '200':
          description: List users matching the query criteria
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEntity'
        '500':
          description: Internal server error
  /organizations/{orgId}/users/{userId}:
    get:
      tags:
      - Users
      summary: Retrieve a user
      description: User must have the ORGANIZATION_USERS[READ] permission to use this service
      operationId: getUser_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: A user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEntity'
        '404':
          description: User not found
        '500':
          description: Internal server error
    delete:
      tags:
      - Users
      summary: Delete a user
      description: User must have the ORGANIZATION_USERS[DELETE] permission to use this service
      operationId: deleteUser_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '204':
          description: User successfully deleted
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/users/{userId}/_process:
    post:
      tags:
      - Users
      summary: Process a user registration by accepting or rejecting it
      operationId: validateRegistration_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          '*/*':
            schema:
              type: boolean
      responses:
        '200':
          description: Processed user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEntity'
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/users/{userId}/avatar:
    get:
      tags:
      - Users
      summary: Get the user's avatar
      operationId: getUserAvatar_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: User's avatar
          content:
            '*/*':
              schema:
                type: string
                format: binary
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/users/{userId}/changePassword:
    post:
      tags:
      - Users
      summary: Change user password after a reset
      description: User registration must be enabled
      operationId: finalizeResetPassword_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/ResetPasswordUserEntity'
      responses:
        '200':
          description: User successfully updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEntity'
        '500':
          description: Internal server error
  /organizations/{orgId}/users/{userId}/groups:
    get:
      tags:
      - Users
      summary: List of groups the user belongs to
      description: User must have the ORGANIZATION_USERS[READ] permission to use this service
      operationId: getUserGroups_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List of user groups
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserGroupEntity'
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/users/{userId}/memberships:
    get:
      tags:
      - Users
      summary: List of memberships the user belongs to
      description: User must have the ORGANIZATION_USERS[READ] permission to use this service
      operationId: getUserMemberships_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: type
        in: query
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List of user memberships
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserMembershipList'
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/users/{userId}/resetPassword:
    post:
      tags:
      - Users
      summary: Reset the user's password
      description: User must have the ORGANIZATION_USERS[UPDATE] permission to use this service
      operationId: resetUserPassword_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '204':
          description: User's password reset
        '400':
          description: reset page URL must not be null
        '404':
          description: User not found
        '500':
          description: Internal server error
  /organizations/{orgId}/users/{userId}/roles:
    put:
      tags:
      - Users
      operationId: updateUserRoles_1
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/UserReferenceRoleEntity'
        required: true
      responses:
        default:
          description: default response
          content:
            '*/*': {}
      summary: Update user roles 1
      x-summary-source: derived
components:
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    CookieAuth:
      type: apiKey
      in: cookie
      name: Auth-Graviteeio-APIM
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    gravitee-auth:
      type: http
      scheme: basic
  schemas:
    MembershipReferenceType:
      type: string
      enum:
      - APPLICATION
      - API
      - GROUP
      - ENVIRONMENT
      - ORGANIZATION
      - PLATFORM
    UserPageResult:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/UserEntity'
        metadata:
          type: object
          additionalProperties:
            type: object
            additionalProperties:
              type: object
        page:
          $ref: '#/components/schemas/Page'
    UserMembershipList:
      type: object
      properties:
        memberships:
          type: array
          items:
            $ref: '#/components/schemas/UserMembership'
        metadata:
          type: object
          additionalProperties:
            type: object
            additionalProperties:
              type: object
    UserRoleEntity:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        permissions:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        scope:
          $ref: '#/components/schemas/RoleScope'
    UserMembership:
      type: object
      properties:
        reference:
          type: string
        roles:
          type: object
          additionalProperties:
            type: string
        source:
          type: string
        type:
          type: string
    UserEntity:
      type: object
      properties:
        created_at:
          type: string
          format: date-time
        customFields:
          type: object
          additionalProperties:
            type: object
        displayName:
          type: string
          readOnly: true
        email:
          type: string
        envRoles:
          type: object
          additionalProperties:
            uniqueItems: true
            type: array
            items:
              $ref: '#/components/schemas/UserRoleEntity'
        firstConnectionAt:
          type: string
          format: date-time
        firstname:
          type: string
        id:
          type: string
        lastConnectionAt:
          type: string
          format: date-time
        lastname:
          type: string
        loginCount:
          type: integer
          format: int64
        newsletterSubscribed:
          type: boolean
        number_of_active_tokens:
          type: integer
          format: int32
        password:
          type: string
        picture:
          type: string
        primary_owner:
          type: boolean
        roles:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/UserRoleEntity'
        source:
          type: string
        sourceId:
          type: string
        status:
          type: string
        updated_at:
          type: string
          format: date-time
    NewPreRegisterUserEntity:
      required:
      - email
      type: object
      properties:
        customFields:
          type: object
          additionalProperties:
            type: object
        email:
          type: string
        firstname:
          type: string
        lastname:
          type: string
        newsletter:
          type: boolean
        picture:
          type: string
        service:
          type: boolean
        source:
          type: string
        sourceId:
          type: string
    RoleScope:
      type: string
      enum:
      - API
      - APPLICATION
      - GROUP
      - ENVIRONMENT
      - ORGANIZATION
      - PLATFORM
    SearchableUser:
      type: object
      properties:
        displayName:
          type: string
        email:
          type: string
        firstname:
          type: string
        id:
          type: string
        lastname:
          type: string
        picture:
          type: string
        reference:
          type: string
    ResetPasswordUserEntity:
      required:
      - firstname
      - lastname
      - password
      - token
      type: object
      properties:
        firstname:
          type: string
        lastname:
          type: string
        password:
          type: string
        token:
          type: string
    UserReferenceRoleEntity:
      type: object
      properties:
        referenceId:
          type: string
        referenceType:
          $ref: '#/components/schemas/MembershipReferenceType'
        roles:
          type: array
          items:
            type: string
        user:
          type: string
    Page:
      type: object
      properties:
        current:
          type: integer
          format: int32
        per_page:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        total_elements:
          type: integer
          format: int32
        total_pages:
          type: integer
          format: int32
    UserGroupEntity:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        roles:
          type: object
          additionalProperties:
            type: string