# Hide custom text from specific groups

## Summary

To display text only for specific user groups.

In this example, we are using groupID `999` which is the Guest Group.

```
<script>
    if(activeInfo.user.groupID !== 999){
        var cssSettings = `
            .hidden-for-non-guest {
                display: none;
            }
        `;
        $('#guest-css').html(cssSettings);
    }
</script>
<style id="guest-css"></style>
<div class="hidden-for-non-guest">
    <h1>You're a guest.  Please log in!</h1>
</div>
This is text everyone sees.
```

### Steps

Open the Tab Editor and go to Homepage Items then finally select Custom HTML

![](/files/-MiYA4xG23bmNXVXPbuj)

Next you will Click which Custom HTML segment you want to use and `Enable`it then change the `Minimum Authentication` to the group you want to allow to see it.  Next you will copy the code from above and paste it into the box at the bottom.  Finally hit the :floppy\_disk: button.

![](/files/-MiYAYnPiahMly7ybp44)

### Outcome

#### A User who is logged in

![](/files/-MiY_V-ZlcITkSmNpQqN)

#### A User who is not logged in

![](/files/-MiY__EPvRL16fTPy2OQ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.organizr.app/tweaks/hide-custom-text-from-specific-groups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
