From inside the VM, find out in which lxd group the VM is located

,

Hello, i have lxd cluster and group

lxc cluster group ls
+---------+-----------------------+---------+
|  NAME   |      DESCRIPTION      | MEMBERS |
+---------+-----------------------+---------+
| group1  |                       | 1       |
+---------+-----------------------+---------+
| group2  |                       | 1       |

I run vm and go to inside lxc exec <vm_name> bash

How can I find out which lxd group a virtual machine is located in?
I want to have in vm a variable with group name

System Info (Host):
OS: "Ubuntu 22.04.3 LTS
Kernel: 5.15.0-94-generic
LXD: 5.20 (snap)

i guess i can provide env to the vm

TARGET=my_lxd_server
RACK=$(lxc cluster show $TARGET | grep -A 1 "groups:" | tail -n 1 | awk '{print $2}')
lxc config set vm_name environment.RACK=$RACK