# User Management

## User Creation

In order to have fully functioning user account a couple of steps needs to be accomplished:

1. Create User with [`Create User`](/api-reference/user-management/users.md#post-users). Email address sent in the payload must be unique and its domain must be the same as for the Partner.
2. Upload IDENTIFICATION\_CERTIFICATE document for that user with [`Upload Document`](/api-reference/documents/new-documents.md#post-v2-documents).
3. Start Onboarding with [`Start Onboarding`](/api-reference/user-management/users.md#post-user-onboardings). After successful onboarding you will receive an email with one time password.
4. Log in to Partner Panel and change password to permanent.
5. Configure authenticator application for MFA

## Deactivate User

I order to deactivate a user and prevent further login use [`Update User`](/api-reference/user-management/users.md#patch-users-userid) and set `status` field to `INACTIVE`.

## Reset MFA

In case access to authenticator app is not possible a reset of MFA settings is needed.\
To do that use [`Update User`](/api-reference/user-management/users.md#patch-users-userid) and set `mfaType` field to `SMS`.\
Next time user logs in SMS will be send to telephone number specified for that user.\
After successful login user will be asked to set up new authenticator app and MFA method will be changed back again.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tradevest.ai/documentation/11_user_management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
