---
title: "Important: #107848 - DataHandler properties userid and admin removed"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:important-107848-1761561877"
source: "Changelog/14.0/Important-107848-DataHandlerPropertiesUseridAndAdminRemoved.rst"
typo3-version: "14.0"
typo3-major: 14
type: "important"
issue: 107848
forge: "https://forge.typo3.org/issues/107848"
tags: ["PHP-API", "ext:core"]
rendered: "2026-09-23T15:30:34+00:00"
---

# Important: #107848 - DataHandler properties `userid` and `admin` removed {#important-107848-1761561877}

See [forge#107848](https://forge.typo3.org/issues/107848)

## Description {#description}

The internal properties `\TYPO3\CMS\Core\DataHandling\DataHandler::$userid`
and `\TYPO3\CMS\Core\DataHandling\DataHandler::$admin` have been removed.

These properties contained information that is already available through the
`BE_USER` property and were therefore redundant.

## Impact {#impact}

Accessing these properties directly will result in a fatal PHP error.

## Affected installations {#affected-installations}

All installations with extensions that access the following properties:

-   `\TYPO3\CMS\Core\DataHandling\DataHandler::$userid`
-   `\TYPO3\CMS\Core\DataHandling\DataHandler::$admin`

While these properties were marked as `@internal`, they have been commonly
used by extensions, especially the `$admin` property.

## Migration {#migration}

Replace any usage of these properties with the appropriate methods from the
`BE_USER` property.

### For `$userid` {#for-userid}

```php
// Before:
$userId = $dataHandler->userid;

// After:
$userId = $dataHandler->BE_USER->getUserId();
```

### For `$admin` {#for-admin}

```php
// Before:
if ($dataHandler->admin) {
    // do something
}

// After:
if ($dataHandler->BE_USER->isAdmin()) {
    // do something
}
```
