Ajax search permission error

Hi, guys! i create a plugin and it's works fine and listing some users. The plugin works when the user not logged in the elgg site, but the search ajax return the error:

{"output":"","status":-1,"system_messages":{"error":["Voc\u00ea n\u00e3o pode executar esta a\u00e7\u00e3o enquando desconectado."],"success":[]}}

"You don't can't execute that action when disconnected". I need change permissions for it?