Elastic Agent - logged-in user and model

Hello,
I'm asking here because I couldn't find a definitive answer in the documentation.
I am running an Elastic Agent on workstations. Does the agent have the capability to collect the currently logged-in user and the model of the workstation?
The agent is managed by a Fleet server.

Thank you.

Yes, if you add the osquery manager integration you can schedule a query (or run it manually when needed) against your agent, policy or os type.

the query you need would be

select * from logged_in_users

osquery reference

(post deleted by author)