> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/global-functions/getusers.md).

# getUsers

```lua
return function()
    local allActiveUsers = getUsers();
    for i,user in pairs(allActiveUsers) do
        log(user.displayName); --print all of their display names to console.
    end
end
```

{% content-ref url="/pages/PMCf9PE6DyXPQ9exjGC1" %}
[User](/lua-scripting-api/api-reference-and-tips/classes/user.md)
{% endcontent-ref %}
