# Flow Permissions

User groups can be used to control which of your users can see a particular template when it is published. Groups can be added to a template in its template edit page through this element:

<figure><img src="/files/2dnec3tw9nmZHWmestca" alt=""><figcaption></figcaption></figure>

As noted there, by default a published template without any groups will be visible to all your users. When a template has at least one group, it will only be visible to users who are part of that group. If a template has several groups, a user only needs to be a member of at least one of those groups to be able to see it.

You can determine which groups a given user is part of when you implement the marketplace, using the `groups` attribute. You can optionally pass a comma-separate list of groups the user belongs to, like this:

```jsx
<div class="content-icenter"><integration-center token="{$userToken}" 
groups="premium,dev" ></integration-center></div>
```

In this example, the user will be able to see all templates that have the groups `premium` and/or `dev`, as well as any templates that do not have any groups.


---

# 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://flowmate.gitbook.io/flowmate-documentation/flow-permissions.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.
