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

# users.update

> Updates a team member's status and/or role. Both fields are optional — pass only the ones you want to change.

<sup>Questions or issues? Contact us at [api-support@manus.ai](mailto:api-support@manus.ai).</sup>

<Tip>
  **Auth:** Bearer access token from [oauth.token](/enterprise/v1/oauth.token).

  **URL encoding:** The `email` path parameter must be URL-encoded.

  **Partial updates:** Both `status` and `role` are optional — pass only the field(s) you want to change.

  **Status values:** `active` re-enables a previously disabled member; `inactive` disables them. `removed` is **not** supported in v1 — use the team UI for hard removal, or migrate to [v2 team.user.remove](/enterprise/v2/team.user.remove).

  **Role values:** `super_admin`, `admin`, `member`, or `free_tier_member`. `owner` is rejected. Promoting `free_tier_member → super_admin/admin/member` calls Stripe to bump the team's seat quantity; if Stripe rejects the upgrade the call returns `500 INTERNAL_ERROR` and the role change is rolled back.

  **SailPoint usage:** Disable / enable account flows map to PATCH with `{"status":"inactive"}` / `{"status":"active"}`.
</Tip>


## OpenAPI

````yaml PATCH /api/user/manage/v1/users/{email}
openapi: 3.1.0
info:
  title: Manus Team User Management OpenAPI v1
  description: >-
    API for enterprise tenant administrators to manage team members
    programmatically (SailPoint, Okta, custom IDP integrations). Two surfaces:
    (1) credential management RPCs at `/team.v1.TeamManagementService/*` use a
    session token; (2) REST endpoints under `/api/user/manage/v1/*` use an OAuth
    2.0 Client Credentials access token issued by the credentials. v2 of this
    API ([User Management v2](/enterprise/v2/user-management-overview))
    consolidates everything behind `X-API-Key` — prefer it for new integrations.
  version: 1.0.0
servers:
  - url: https://api.manus.im
security: []
paths:
  /api/user/manage/v1/users/{email}:
    patch:
      summary: Update User
      description: >-
        Updates a team member's status and/or role. Both fields are optional —
        pass only the ones you want to change.
      operationId: team.v1.UpdateUser
      parameters:
        - name: email
          in: path
          required: true
          schema:
            type: string
            format: email
            example: user@example.com
          description: URL-encoded email of the team member to update.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  enum:
                    - active
                    - inactive
                  description: >-
                    Set the user's status. `inactive` deactivates the account;
                    `active` re-enables it.
                  example: active
                role:
                  type: string
                  enum:
                    - super_admin
                    - admin
                    - member
                    - free_tier_member
                  description: >-
                    New role. Promoting `free_tier_member →
                    admin/super_admin/member` triggers a Stripe seat-quantity
                    bump; the reverse direction releases the seat implicitly.
                  example: admin
      responses:
        '200':
          description: User updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '400':
          description: '`INVALID_REQUEST` — `status` or `role` value is unsupported.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: '`USER_NOT_FOUND`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAccessAuth: []
components:
  schemas:
    User:
      type: object
      description: A team member.
      properties:
        email:
          type: string
          format: email
          example: user@example.com
        userName:
          type: string
          example: Jane Doe
        firstName:
          type: string
          example: Jane
        lastName:
          type: string
          example: Doe
        status:
          type: string
          enum:
            - active
            - inactive
          example: active
        role:
          type: string
          enum:
            - owner
            - super_admin
            - admin
            - member
            - free_tier_member
          description: >-
            `owner` is read-only — it cannot be set or changed via API.
            `free_tier_member` is a non-paying member that does not consume a
            Stripe seat.
          example: member
    ErrorResponse:
      type: object
      description: Standard REST error format.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code: `INVALID_REQUEST`,
                `INVALID_GRANT_TYPE`, `UNAUTHORIZED`, `INVALID_CLIENT`,
                `USER_NOT_FOUND`, `USER_ALREADY_EXISTS`, or `INTERNAL_ERROR`.
            message:
              type: string
  securitySchemes:
    BearerAccessAuth:
      type: http
      scheme: bearer
      description: >-
        OAuth 2.0 Client Credentials access token issued by
        [/api/user/manage/v1/oauth/token](/enterprise/v1/oauth.token). Lifetime
        is 1 hour.

````