---
title: "Deprecation: #79591 - Extbase command controllers admin role methods"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-79591"
source: "Changelog/8.7/Deprecation-79591-ExtbaseCommandControllersAdminRoleMethods.rst"
typo3-version: "8.7"
typo3-major: 8
type: "deprecation"
issue: 79591
forge: "https://forge.typo3.org/issues/79591"
tags: ["CLI", "ext:extbase", "PHP-API"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #79591 - Extbase command controllers admin role methods {#deprecation-79591}

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

## Description {#description}

The methods `CommandController->ensureAdminRoleIfRequested()` and
`CommandController->restoreUserRole()` have been marked as deprecated.

All CLI scripts are now executed with administrator access rights, so this functionality is obsolete.

## Impact {#impact}

Calling any of the methods above will trigger a deprecation log warning.

## Affected Installations {#affected-installations}

Any installation with custom CLI Extbase Command Controllers using the methods above.

## Migration {#migration}

Remove the affected lines where the methods are called, as they are not necessary anymore.
