Allow reading users and groups
Let an external app read all users and groups with a token.
On this page
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.
- Open Setup, then Settings.
- Go to Allow reading for all users and groups.
- Tick Enable API.
- Enter your own long random Access token, or click Generate.
- Click SUBMIT.

Read the data
Send the token in the X-Token header:
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.