How can I get the currently logged-in user's name

How can I get the currently logged-in user's name or info to use in a query in Metabase? I want to use this for role-based actions in a native query.

2 Likes