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

> Interact with Modrinth Users

# UserManager

```ts theme={"theme":"github-dark-high-contrast"}
export class UserManager
```

# Table of Contents

### Methods

* [getAuthorizedUser()](#getAuthorizedUser)
* [getUser()](#getUser)
* [getMultipleUsers()](#getMultipleUsers)
* [getUserProjects()](#getUserProjects)
* [getUserFollowedProjects()](#getUserFollowedProjects)
* [getUserPayoutHistory()](#getUserPayoutHistory)
* [getUserNotifications()](#getUserNotifications)
* [getMultipleUserNotifications()](#getMultipleUserNotifications)

## Methods

<AccordionGroup>
  <Accordion title="getAuthorizedUser()">
    <div id="getAuthorizedUser" />

    <ResponseField name="getAuthorizedUser()" pre={["async"]}>
      Get the user associated with the API client's token, if one is present

      *Returns [Response](/reference/type/Response)\<[User](/reference/type/User) | [null](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null)>*
    </ResponseField>
  </Accordion>

  <Accordion title="getUser()">
    <div id="getUser" />

    <ResponseField name="getUser(id_or_username)" pre={["async"]}>
      Get a specific user on Modrinth

      <ResponseField name="id_or_username" type="string" required />

      *Returns [Response](/reference/type/Response)\<[User](/reference/type/User) | [null](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null)>*
    </ResponseField>
  </Accordion>

  <Accordion title="getMultipleUsers()">
    <div id="getMultipleUsers" />

    <ResponseField name="getMultipleUsers(ids_or_usernames)" pre={["async"]}>
      Get mutliple users on Modrinth by their ID or username

      <ResponseField name="ids_or_usernames" type="string[]" required />

      *Returns [Response](/reference/type/Response)\<[User](/reference/type/User)\[]>*
    </ResponseField>
  </Accordion>

  <Accordion title="getUserProjects()">
    <div id="getUserProjects" />

    <ResponseField name="getUserProjects(id_or_username)" pre={["async"]}>
      Get a list of projects associated with a user on Modrinth

      <ResponseField name="id_or_username" type="string" required />

      *Returns [Response](/reference/type/Response)\<[Project](/reference/type/Project)\[]>*
    </ResponseField>
  </Accordion>

  <Accordion title="getUserFollowedProjects()">
    <div id="getUserFollowedProjects" />

    <ResponseField name="getUserFollowedProjects(id_or_username)" pre={["async"]}>
      Get a list of projects a user on Modrinth is following

      <ResponseField name="id_or_username" type="string" required />

      *Returns [Response](/reference/type/Response)\<[Project](/reference/type/Project)\[]>*
    </ResponseField>
  </Accordion>

  <Accordion title="getUserPayoutHistory()">
    <div id="getUserPayoutHistory" />

    <ResponseField name="getUserPayoutHistory(id_or_username)" pre={["async", "requires token"]}>
      Get a user's Modrinth payout transaction history

      <ResponseField name="id_or_username" type="string" required />

      *Returns [Response](/reference/type/Response)\<[UserPayoutTransaction](/reference/type/UserPayoutTransaction)\[]>*
    </ResponseField>
  </Accordion>

  <Accordion title="getUserNotifications()">
    <div id="getUserNotifications" />

    <ResponseField name="getUserNotifications(id_or_username)" pre={["async", "requires token"]}>
      Get a list of a user's Modrinth notifications

      <ResponseField name="id_or_username" type="string" required />

      *Returns [Response](/reference/type/Response)\<[UserNotification](/reference/type/UserNotification)\[]>*
    </ResponseField>
  </Accordion>

  <Accordion title="getMultipleUserNotifications()">
    <div id="getMultipleUserNotifications" />

    <ResponseField name="getMultipleUserNotifications(...ids)" pre={["async", "requires token"]}>
      Get a list of Modrinth notifications by their ID

      <ResponseField name="ids" type="string[]" required />

      *Returns [Response](/reference/type/Response)\<[UserNotification](/reference/type/UserNotification)\[]>*
    </ResponseField>
  </Accordion>
</AccordionGroup>
