---
url: "https://vueda.dev/v3/reference/api/py/vueda.user.serializers/WhoIsSerializer.md"
title: "WhoIsSerializer"
---

# WhoIsSerializer

## Overview

This is a serializer for the current user, it is simpler than the other user serializers.

These fields give the user information about themselves, after they login or when they return to the site.

``auth_pending_flow`` names the reauthentication flow the session owes: ``mfa_reauthenticate`` for a user
with an MFA authenticator, ``reauthenticate`` for a user with only a password, or ``None`` when the session
completed that flow within ``ACCOUNT_REAUTHENTICATION_TIMEOUT`` or the account has nothing to confirm. It
comes from ``vueda.core.reauthentication``, the same policy ``recent_auth_required`` enforces, so the client
shows the form the server will accept.

## `Meta` {#Meta}

### Source {#Meta-source}

`server/vueda/user/serializers.py:85`

## `get_auth_pending_flow` {#get_auth_pending_flow}

### Signature {#get_auth_pending_flow-signature}

`get_auth_pending_flow(self, _)`

#### Parameters {#get_auth_pending_flow-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |
| <span id="get_auth_pending_flow-param-_">_</span> |  | yes |  |  |

#### Returns {#get_auth_pending_flow-returns}

`str | None`

### Source {#get_auth_pending_flow-source}

`server/vueda/user/serializers.py:111`

## `get_fields` {#get_fields}

Return fields after applying constructor-sourced flex-fields options.

### Signature {#get_fields-signature}

`get_fields(self)`

#### Parameters {#get_fields-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |

### Source {#get_fields-source}

`server/vueda/user/serializers.py:97`

## `auth_pending_flow` {#auth_pending_flow}

## `groups` {#groups}

## Source

`server/vueda/user/serializers.py:69`
