---
title: "Userinfo Endpoint"
manual: "TCA_API"
version: "2.2"
permalink: "https://docs.typo3.org/permalink/maikschneider/tca-api:userinfo@2.2"
source: "Configuration/Userinfo.rst"
rendered: "2026-10-12T13:17:40+00:00"
---

# Userinfo Endpoint {#userinfo}

A userinfo endpoint exposes the **currently authenticated FE user's own record**
without requiring a UID in the URL. Set `'type' => 'userinfo'` in the
`general` section:

```php
use MaikSchneider\TcaApi\Registry\ApiRegistry;

ApiRegistry::register('me', [
    'general' => [
        'type'         => 'userinfo',
        'table'        => 'fe_users',
        'resourceName' => 'me',
        'resourceType' => 'FeUser',
    ],
    'columns' => [
        'username'   => ['groups' => ['show']],
        'email'      => ['groups' => ['show']],
        'name'       => ['groups' => ['show']],
        'first_name' => ['groups' => ['show']],
        'last_name'  => ['groups' => ['show']],
    ],
]);
```

```text
GET /_api/me   → Returns the record of the logged-in FE user
```

## Behaviour {#behaviour}

-   Only `GET` is allowed — write operations are not supported on userinfo
    endpoints.
-   Returns **403 Forbidden** if no FE user is authenticated.
-   All column features work as normal: `embed`, `virtualProperties`, column
    processors.
-   The `security` and `operations` keys are ignored — access is always tied
    to FE user authentication.
