> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainloop.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get current user information

> Returns information about the currently authenticated user, including personal details and organization memberships.



## OpenAPI

````yaml https://api.app.chainloop.dev/openapi.yaml get /v1/users/info
openapi: 3.0.1
info:
  contact:
    email: support@chainloop.dev
    name: Chainloop Support
    url: https://chainloop.dev
  termsOfService: https://chainloop.dev/terms
  title: Chainloop Platform API
  version: '1.0'
servers:
  - url: https://api.app.chainloop.dev/
security:
  - bearerToken: []
tags:
  - description: AI-powered agent operations
    name: AgentsService
  - name: ArtifactService
  - name: AssessmentService
  - description: Service for polling the status of asynchronous operations
    name: AsyncOperationsService
  - name: AttestationsService
  - name: PolicyService
  - name: ComplianceService
  - name: ComponentService
  - name: EnvironmentsService
  - name: EvidenceService
  - name: FindingService
  - name: LogicalEnvironmentsService
  - name: ProductsService
  - name: ProjectsService
  - name: UserService
externalDocs:
  description: Chainloop Official Documentation
  url: https://docs.chainloop.dev
paths:
  /v1/users/info:
    get:
      tags:
        - UserService
      summary: Get current user information
      description: >-
        Returns information about the currently authenticated user, including
        personal details and organization memberships.
      operationId: UserService_Info
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1UserServiceInfoResponse'
          description: A successful response.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1BadRequestResponse'
          description: Bad Request - The request was invalid or cannot be served.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1UnauthorizedResponse'
          description: Unauthorized - Authentication is required.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1PermissionDeniedResponse'
          description: Forbidden - You do not have permission to access this resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1InternalServerErrorResponse'
          description: Internal Server Error - An unexpected error occurred on the server.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
          description: An unexpected error response.
components:
  schemas:
    v1UserServiceInfoResponse:
      description: >-
        Response containing information about the current authenticated user and
        their memberships.
      example:
        user:
          intercom_hash: intercom_hash
          created_at: '2000-01-23T04:56:07.000Z'
          last_name: last_name
          id: id
          first_name: first_name
          email: email
          instance_admin: true
        memberships:
          - role: MEMBERSHIP_ROLE_UNSPECIFIED
            parent_resource_id: parent_resource_id
            organization_id: organization_id
            resource_type: MEMBERSHIP_RESOURCE_TYPE_UNSPECIFIED
            resource_id: resource_id
          - role: MEMBERSHIP_ROLE_UNSPECIFIED
            parent_resource_id: parent_resource_id
            organization_id: organization_id
            resource_type: MEMBERSHIP_RESOURCE_TYPE_UNSPECIFIED
            resource_id: resource_id
      properties:
        user:
          $ref: '#/components/schemas/v1User'
        memberships:
          description: >-
            List of organization and project memberships for this user in the
            current organization.
          items:
            $ref: '#/components/schemas/UserServiceInfoResponseMembership'
          title: The list of memberships for this user
          type: array
      title: UserServiceInfoResponse
      type: object
    v1BadRequestResponse:
      description: Response for bad request
      example:
        code: 0
        details:
          - details
          - details
        message: message
      properties:
        code:
          default: 3
          description: >-
            The error code indicating the type of error. It's fixed to 3, which
            is the code for INVALID_ARGUMENT.
          format: int32
          type: integer
        message:
          description: A human-readable message providing more details about the error.
          type: string
        details:
          description: Additional details about the error.
          items:
            type: string
          type: array
      required:
        - code
        - message
      title: BadRequestResponse
      type: object
    v1UnauthorizedResponse:
      description: Response for unauthorized access
      example:
        code: 6
        details:
          - details
          - details
        message: message
      properties:
        code:
          default: 16
          description: >-
            The error code indicating the type of error. It's fixed to 16, which
            is the code for UNAUTHENTICATED.
          format: int32
          type: integer
        message:
          description: A human-readable message providing more details about the error.
          type: string
        details:
          description: Additional details about the error.
          items:
            type: string
          type: array
      required:
        - code
        - message
      title: UnauthorizedResponse
      type: object
    v1PermissionDeniedResponse:
      description: Response for permission denied
      example:
        code: 1
        details:
          - details
          - details
        message: message
      properties:
        code:
          default: 7
          description: >-
            The error code indicating the type of error. It's fixed to 7, which
            is the code for PERMISSION_DENIED.
          format: int32
          type: integer
        message:
          description: A human-readable message providing more details about the error.
          type: string
        details:
          description: Additional details about the error.
          items:
            type: string
          type: array
      required:
        - code
        - message
      title: PermissionDeniedResponse
      type: object
    v1InternalServerErrorResponse:
      description: Response for internal server error
      example:
        code: 5
        details:
          - details
          - details
        message: message
      properties:
        code:
          default: 13
          description: >-
            The error code indicating the type of error. It's fixed to 13, which
            is the code for INTERNAL_ERROR.
          format: int32
          type: integer
        message:
          description: A human-readable message providing more details about the error.
          type: string
        details:
          description: Additional details about the error.
          items:
            type: string
          type: array
      required:
        - code
        - message
      title: InternalServerErrorResponse
      type: object
    rpcStatus:
      example:
        code: 5
        details:
          - '@type': '@type'
          - '@type': '@type'
        message: message
      properties:
        code:
          format: int32
          type: integer
        message:
          type: string
        details:
          items:
            $ref: '#/components/schemas/protobufAny'
          type: array
      type: object
    v1User:
      description: Information about a user in the Chainloop platform.
      example:
        intercom_hash: intercom_hash
        created_at: '2000-01-23T04:56:07.000Z'
        last_name: last_name
        id: id
        first_name: first_name
        email: email
        instance_admin: true
      properties:
        id:
          description: Unique identifier of the user.
          title: The ID of the user
          type: string
        email:
          description: Email address of the user.
          title: The email of the user
          type: string
        intercom_hash:
          description: Computed hash of the user ID for use with Intercom.
          title: The computed hash of the user id to be used in intercom
          type: string
        created_at:
          description: Timestamp when the user account was created.
          format: date-time
          title: The time the user was created
          type: string
        first_name:
          description: First name of the user.
          title: The first name of the user
          type: string
        last_name:
          description: Last name of the user.
          title: The last name of the user
          type: string
        instance_admin:
          description: Whether the user is an instance admin.
          title: Whether the user is an instance admin
          type: boolean
      title: User
      type: object
    UserServiceInfoResponseMembership:
      example:
        role: MEMBERSHIP_ROLE_UNSPECIFIED
        parent_resource_id: parent_resource_id
        organization_id: organization_id
        resource_type: MEMBERSHIP_RESOURCE_TYPE_UNSPECIFIED
        resource_id: resource_id
      properties:
        role:
          $ref: '#/components/schemas/v1MembershipRole'
        resource_type:
          $ref: '#/components/schemas/v1MembershipResourceType'
        resource_id:
          description: The unique identifier of the resource.
          title: the resource ID
          type: string
        parent_resource_id:
          description: The identifier of the parent resource (e.g. a product).
          type: string
        organization_id:
          description: >-
            The unique identifier of the organization this membership belongs
            to.
          title: The organization ID this membership belongs to
          type: string
      type: object
    protobufAny:
      additionalProperties:
        type: object
      example:
        '@type': '@type'
      properties:
        '@type':
          type: string
      type: object
    v1MembershipRole:
      default: MEMBERSHIP_ROLE_UNSPECIFIED
      description: >-
        Defines the role a user has within an organization or project. For more
        information, refer to the [RBAC Roles
        documentation](https://docs.chainloop.dev/reference/rbac#roles).
      enum:
        - MEMBERSHIP_ROLE_UNSPECIFIED
        - MEMBERSHIP_ROLE_ORG_VIEWER
        - MEMBERSHIP_ROLE_ORG_ADMIN
        - MEMBERSHIP_ROLE_ORG_OWNER
        - MEMBERSHIP_ROLE_ORG_CONTRIBUTOR
        - MEMBERSHIP_ROLE_ORG_MEMBER
        - MEMBERSHIP_ROLE_PROJECT_ADMIN
        - MEMBERSHIP_ROLE_PROJECT_VIEWER
        - MEMBERSHIP_ROLE_GROUP_MAINTAINER
        - MEMBERSHIP_ROLE_PRODUCT_ADMIN
        - MEMBERSHIP_ROLE_PRODUCT_VIEWER
        - MEMBERSHIP_ROLE_INSTANCE_ADMIN
      title: MembershipRole
      type: string
    v1MembershipResourceType:
      default: MEMBERSHIP_RESOURCE_TYPE_UNSPECIFIED
      description: Defines the type of resource a user membership applies to.
      enum:
        - MEMBERSHIP_RESOURCE_TYPE_UNSPECIFIED
        - MEMBERSHIP_RESOURCE_TYPE_ORGANIZATION
        - MEMBERSHIP_RESOURCE_TYPE_PROJECT
        - MEMBERSHIP_RESOURCE_TYPE_GROUP
        - MEMBERSHIP_RESOURCE_TYPE_PRODUCT
      title: MembershipResourceType
      type: string
  securitySchemes:
    bearerToken:
      description: Bearer token for authentication
      type: http
      scheme: bearer
      bearerFormat: JWT

````