Skip to main content

Get a user by ID

GET 

/users/:userId

The Get User request allows you to retrieve information about a specific user in ANSCER ANYA. This request takes in the user's unique ID as a parameter, and returns a JSON object containing information about the user, including their name, email, and role.

Request​

Path Parameters

    userId stringrequired

    The ID of the user to retrieve, update or delete

Responses​

User details

Schema
    _id uuid
    name string

    Possible values: >= 3 characters and <= 50 characters

    email email

    Possible values: >= 5 characters and <= 255 characters

    isActive boolean
    role userRoles

    Possible values: [developer, admin, user]

    createdBy object

    The user who created this user

    _id string
    name string
    email email
    updatedBy object

    The user who last updated this user

    _id string
    name string
    email email
    createdAt date-time

    The date and time this user was created

    updatedAt date-time

    The date and time this user was last updated

Loading...