---
title: "How to Check If the Current User is Super User in Joomla with PHP - General"
description: "Below you can find a PHP snippet that will allow you to detect whether a user is a Super User. use Joomla\CMS\Factory;  $isSuperUser = Factory::get"
url: "https://www.tassos.gr/docs/common/tutorials/check-super-user-php"
date: "2026-11-22T14:28:19+00:00"
language: "en-GB"
---

[ Home ](https://www.tassos.gr/docs) / [ General ](https://www.tassos.gr/docs/common) / [ Joomla tutorials ](https://www.tassos.gr/docs/common/tutorials)

#  How to Check If the Current User is Super User in Joomla with PHP

Below you can find a PHP snippet that will allow you to detect whether a user is a Super User.

 ```
use Joomla\CMS\Factory;

$isSuperUser = Factory::getApplication()->getIdentity()->authorise('core.admin');

if ($isSuperUser)
{
    echo "Hey Super User";
}
```

 Last updated on Nov 20th 2026 13:11
