---
title: "Frontend user"
manual: "TYPO3 Explained"
version: "12.4"
permalink: "https://docs.typo3.org/permalink/t3coreapi:typo3-request-attribute-frontend-user@12.4"
source: "ApiOverview/RequestLifeCycle/RequestAttributes/FrontendUser.rst"
rendered: "2026-10-21T15:29:37+00:00"
---

> [!WARNING]
> **Attention**
>
> TYPO3 v12 has reached end-of-life as of April 30th 2026 and
> is no longer being maintained. Use the version switcher on the top
> left of this page to select documentation for a supported version of TYPO3.
>
> Need more time before upgrading?
> You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here:
> [TYPO3 ELTS](https://typo3.com/services/extended-support-elts).

# Frontend user {#typo3-request-attribute-frontend-user}

The `frontend.user` frontend request attribute provides the
`\TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication` object.

The topic is described in depth in chapter
[Authentication](https://docs.typo3.org/permalink/t3coreapi:authentication@12.4).

Example:

**EXT:my_extension/Classes/Service/MyService.php**

```php
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;

public function doSomethingToFrontendUser(ServerRequestInterface $request): void
{
    /** @var FrontendUserAuthentication $frontendUserAuthentification */
    $frontendUserAuthentification = $request->getAttribute('frontend.user');
    $frontendUserAuthentification->fetchGroupData($request);
    // do something
}
```

> [!TIP]
> The frontend user id and groups are available from the
> [User aspect](https://docs.typo3.org/permalink/t3coreapi:context-api-aspects-user@12.4).
