---
title: Allow reading users and groups
project: OpenPlatform
version: 5
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openplatform/5/guides/users-api-setting/
updated: 2026-11-19T04:31:14.310Z
---

# Allow reading users and groups

> Let an external app read all users and groups with a token.

This setting lets an external app read every group and user profile from the platform. It is off by default. Turn it on only when an app needs it.

1. Open **Setup**, then **Settings**.
2. Go to **Allow reading for all users and groups**.
3. Tick **Enable API**.
4. Enter your own long random **Access token**, or click **Generate**.
5. Click **SUBMIT**.

![The Enable API option with the hidden access token](/files/JanxDc2GZ61f.webp)

## Read the data

Send the token in the `X-Token` header:

```bash
curl -H 'X-Token: your-access-token' https://portal.example.com/users/
```

The answer is JSON with a `groups` list and a `users` list.

Anyone with this token can read the profiles of all your users. Keep it secret and always use HTTPS. Generate a new token if it may have leaked.
