# getUser

```lua
return function()
    local findUser = getUser('clonzeh');

    if findUser ~= nil then
        log('found the user: ' .. findUser.displayName .. '. They are using the avatar: ' .. findUser.avatar);
    else
        log('could not find target user');
    end
end
```

{% content-ref url="../classes/user" %}
[user](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/user)
{% endcontent-ref %}
