How to use group name in native queries

Hi,

Is there a way to use the user's Metabase group name when building native queries.
For example:

select COLUMN0, COLUMN1, GROUP from MYTABLE where GROUP={{UserGroup}}

In fact I want to give access to some lines of a table depending on the group.

Thanks!

Hi @gdelaune
That functionality is only available via attributes in Sandboxing: https://www.metabase.com/docs/latest/permissions/data-sandboxes

@flamber, thanks for your advice!