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

# List Project Users

> List all users with access to a project.

Returns all users who can access this project, including:
- Workspace owners (always have full access)
- Workspace members (inherit project's default_role or have explicit permission)
- Member_limited users with explicit project permission (including stub users)

Requires VIEW permission on the project.



## OpenAPI

````yaml /api-reference/openapi.json get /projects/{project_id}/users
openapi: 3.1.0
info:
  title: Aspect Platform API
  description: A FastAPI application for Aspect Platform functionality
  version: 0.0.0
servers:
  - url: https://api.aspect.inc
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /projects/{project_id}/users:
    get:
      tags:
        - Projects
      summary: List Project Users
      description: >-
        List all users with access to a project.


        Returns all users who can access this project, including:

        - Workspace owners (always have full access)

        - Workspace members (inherit project's default_role or have explicit
        permission)

        - Member_limited users with explicit project permission (including stub
        users)


        Requires VIEW permission on the project.
      operationId: get_Projects_projects_project_id_users
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ProjectUserResponse'
                title: Response List Project Users Projects  Project Id  Users Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ProjectUserResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: User ID
        first_name:
          type: string
          title: First Name
          description: User's first name
        last_name:
          type: string
          title: Last Name
          description: User's last name
        email:
          type: string
          title: Email
          description: User's email address
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
          description: User's avatar URL
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
          description: External user ID from auth provider (None for stub users)
        role:
          $ref: '#/components/schemas/ResourceRole'
          description: User's effective role on this project
        actions:
          type: integer
          title: Actions
          description: Permission bitmap derived from role
        workspace_role:
          $ref: '#/components/schemas/ResourceRole'
          description: User's workspace role (for determining editability)
        has_explicit_permission:
          type: boolean
          title: Has Explicit Permission
          description: True if user has explicit permission on this project
      type: object
      required:
        - id
        - first_name
        - last_name
        - email
        - role
        - actions
        - workspace_role
        - has_explicit_permission
      title: ProjectUserResponse
      description: API response schema for a user with project access.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ResourceRole:
      type: string
      enum:
        - owner
        - member
        - member_limited
        - full_access
        - editor
        - commenter
        - downloader
        - viewer
        - no_access
      title: ResourceRole
      description: |-
        Unified role enum for both workspace and project permissions.
        Stored as PostgreSQL ENUM type 'resourcerole' in database.

        Pattern follows existing enums like AssetType:
        - Python enum: ResourceRole.OWNER = "owner" (lowercase value)
        - PostgreSQL ENUM: 'OWNER', 'MEMBER', etc. (uppercase in DB)
        - SQLAlchemy: sa.Enum('OWNER', 'MEMBER', ..., name='resourcerole')
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT in Authorization header. 'Bearer ' prefix optional.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````