Skip to main content

Get users in project

GET 

/api/admin/projects/:projectId/users

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Get users belonging to a project together with their roles as well as a list of roles available to the project. This endpoint is deprecated. Use /:projectId/access instead.

Request

Path Parameters

    projectId stringrequired

Responses

projectUsersSchema

Schema

    users

    object[]

    required

    A list of users with access to this project and their role within it.

  • Array [

  • isAPI booleandeprecated

    Whether this user is authenticated through Unleash tokens or logged in with a session

    Example: false
    name string

    The name of the user

    Example: Hunter Burgan
    email stringnullable

    The user's email address

    Example: hunter@hunter.com
    id integerrequired

    The user's ID in the Unleash system

    Example: 1
    imageUrl urinullable

    A URL pointing to the user's image.

    addedAt date-time

    When this user was added to the project

    Example: 2023-08-01T14:35:16Z
    roleId integer

    The ID of the role this user has in the given project

    Example: 5
    roles integer[]

    A list of roles this user has in the given project

  • ]

  • roles

    object[]

    required

    A list of roles that are available for this project

  • Array [

  • id integerrequired

    The role id

    Example: 9
    type stringrequired

    A role can either be a global root role (applies to all projects) or a project role

    Example: root
    name stringrequired

    The name of the role

    Example: Editor
    description string

    A more detailed description of the role and what use it's intended for

    Example: Users with the editor role have access to most features in Unleash but can not manage users and roles in the global scope. Editors will be added as project owners when creating projects and get superuser rights within the context of these projects. Users with the editor role will also get access to most permissions on the default project by default.
    project stringnullable

    What project the role belongs to

    Example: default
  • ]

Loading...