---
name: "allUsers"
type: command
status: ok
groups: ["Multiplayer", "Object Detection"]
arma3_since: "2.06"
locality: {"argument": null, "effect": null, "server_exec": true}
source: https://community.bistudio.com/wiki/allUsers
revid: 378526
updated: 2026-05-04T01:56:35Z
---

# allUsers

*Command · Multiplayer, Object Detection · Arma 3 v2.06*

Locality: **server execution only**

## Description

Returns a list of [player ids](../commands/getPlayerID.md) of all the users on an MP server.

> [!NOTE]
> This also lists Headless Clients.

## Syntax

```sqf
allUsers
```

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s - user network IDs (see [getPlayerID](../commands/getPlayerID.md), [getUserInfo](../commands/getUserInfo.md))

## Examples

### Example 1

```sqf
if (isServer) then
{
    private _allUserIDs = allUsers;
    for "_i" from 0 to (count _allUserIds - 1) do
    {
        diag_log format ["User #%1 ID: %2", _i + 1, _allUserIds select _i];
    };
};
```

## See also

[getUserInfo](../commands/getUserInfo.md) · [getPlayerID](../commands/getPlayerID.md) · [allPlayers](../commands/allPlayers.md) · [allCurators](../commands/allCurators.md) · [allGroups](../commands/allGroups.md) · [allDead](../commands/allDead.md) · [allUnits](../commands/allUnits.md) · [switchableUnits](../commands/switchableUnits.md) · [playableUnits](../commands/playableUnits.md) · [vehicles](../commands/vehicles.md) · [allUnitsUAV](../commands/allUnitsUAV.md) · [allDeadMen](../commands/allDeadMen.md) · [isPlayer](../commands/isPlayer.md) · [playersNumber](../commands/playersNumber.md)

<sub>Source: [BI Community Wiki — allUsers](https://community.bistudio.com/wiki/allUsers) (revision 378526).</sub>
