---
title: "Be.security.ifAuthenticated ViewHelper <f:be.security.ifAuthenticated>"
manual: "Fluid ViewHelper Reference"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-be-security-ifauthenticated@13.4"
source: "Global/Be/Security/IfAuthenticated.rst"
rendered: "2026-09-27T06:57:26+00:00"
---

# Be.security.ifAuthenticated ViewHelper `<f:be.security.ifAuthenticated>` {#typo3-fluid-be-security-ifauthenticated}

ViewHelper implementing an ifAuthenticated/else condition for backend users and backend groups.

Go to the source code of this ViewHelper: [Be\\Security\\IfAuthenticatedViewHelper.php (GitHub)](https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid/Classes/ViewHelpers/Be/Security/IfAuthenticatedViewHelper.php).

**Table of contents**

-   [Examples](https://docs.typo3.org/permalink/t3viewhelper:examples@13.4)
-   [Arguments of the <f:be.security.ifAuthenticated> ViewHelper](https://docs.typo3.org/permalink/t3viewhelper:arguments-of-the-f-be-security-ifauthenticated-viewhelper@13.4)

## Examples {#typo3-fluid-be-security-ifauthenticated-example}

Basic usage:

**packages/my_extension/Resources/Private/Templates/Module/Index.fluid.html**

```html
<f:be.security.ifAuthenticated>
  This is being shown whenever a BE user is logged in
</f:be.security.ifAuthenticated>
```

Everything inside the `<f:be.security.ifAuthenticated>` tag is being displayed
if the user is authenticated with any backend user account.

IfAuthenticated / then / else:

**packages/my_extension/Resources/Private/Templates/Module/Index.fluid.html**

```html
<f:be.security.ifAuthenticated>
  <f:then>
    This is being shown in case you have access.
  </f:then>
  <f:else>
    This is being displayed in case you do not have access.
  </f:else>
</f:be.security.ifAuthenticated>
```

Everything inside the `<f:then></f:then>` is displayed if the backend user is logged in.
`<f:else></f:else>` is displayed if no backend user is logged in.

## Arguments of the `<f:be.security.ifAuthenticated>` ViewHelper {#typo3-fluid-be-security-ifauthenticated-arguments}

-   **else**

    -   *Type:* mixed

    Value to be returned if the condition if not met.

-   **then**

    -   *Type:* mixed

    Value to be returned if the condition if met.
