# User:In

Anything inside the `user:in` tag will only be rendered if the user is in the specified group.

## Overview
User tags are designed for sites that have areas or features behind a login. The `{{ user:in }}` tag is used to check if the currently logged in user is in a specific user group.

## Example

Let's say we want show a list of downloadable PDFs if the user is in a `coaches` group.

::tabs

::tab antlers
```antlers
{{ user:in group="coaches" }}
<ul>
  {{ assets in="pdf" }}
    <li><a href="{{ url }}">{{ title }}</a></li>
  {{ /assets }}
</ul>
{{ /user:in }}
```
::tab blade
```blade
<s:user:in group="coaches">
<ul>
  <s:assets in="pdf">
    <li><a href="{{ $url }}">{{ $title }}</a></li>
  </s:assets>
</ul>
</s:user:in>
```
::

## Not In

We also support the negative use case using the `{{ user:not_in }}` tag.

::tabs

::tab antlers
```antlers
{{ user:not_in group="coaches" }}
  <p>Hello, sportsball players!</p>
{{ /user:not_in }}
```
::tab blade
```blade
<s:user:not_in group="coaches">
  <p>Hello, sportsball players!</p>
</s:user:not_in>
```
::

## Super Users

While [super users](/users.md#super-users) have [permission](/permissions.md) to do everything, they are not automatically in all groups. Keep this in mind when testing your template logic.
