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

# User Operations

> Choose the right SDK operation for creating, reading, searching, updating, and managing users.

User operations cover the SDK methods your app uses after user identity is defined. Start with standard login-based user creation, use repository methods for reads and profile updates, and reserve token management for trusted workflows that need generated access tokens.

<Info>
  The pages in this section focus on SDK behavior. Admin-only actions and server-only workflows are called out when the client SDK does not expose the operation directly.
</Info>

## Operation Map

<CardGroup cols={2}>
  <Card title="Create User" href="./create-user" icon="user-plus">
    Create or authenticate a user through the SDK login flow.
  </Card>

  <Card title="Get User Information" href="./get-user-information" icon="user">
    Retrieve one user, batch lookup users where supported, or query user collections.
  </Card>

  <Card title="Search and Query Users" href="./search-and-query-users" icon="user-magnifying-glass">
    Search by display name or browse paginated user lists.
  </Card>

  <Card title="Update User Information" href="./update-user-information" icon="user-pen">
    Update the current user's profile fields.
  </Card>

  <Card title="Flag and Unflag Users" href="./flag-unflag-user" icon="flag">
    Report or clear reports on users for moderation workflows.
  </Card>

  <Card title="User Token Management" href="./user-token-management" icon="key">
    Create user access tokens for trusted or server-controlled workflows.
  </Card>

  <Card title="Delete User" href="./delete-user" icon="user-minus">
    Understand user deletion boundaries and admin/API requirements.
  </Card>
</CardGroup>

## Choosing an Operation

| Need                             | Start here                                           | Notes                                                                                     |
| -------------------------------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| Sign in or create a user         | [Create User](./create-user)                         | `login` creates the user if the `userId` does not already exist.                          |
| Show a known user's profile      | [Get User Information](./get-user-information)       | Use single-user reads when you already know the `userId`.                                 |
| Build a user picker or directory | [Search and Query Users](./search-and-query-users)   | Search by display name for keyword flows; query users for paginated browse flows.         |
| Let users edit their own profile | [Update User Information](./update-user-information) | Client SDKs update the active user's profile.                                             |
| Add moderation reporting         | [Flag and Unflag Users](./flag-unflag-user)          | Reporting actions are available from SDK user repositories.                               |
| Generate an access token         | [User Token Management](./user-token-management)     | Use only from trusted workflows; normal SDK login does not consume these tokens directly. |
| Remove a user account            | [Delete User](./delete-user)                         | Deletion is handled through admin/API workflows, not regular client SDK calls.            |
