There has been some previous discussion of Zigbee group management with Edge Drivers.
See the following threads.
@lmullineux has implemented this in an edge driver
And there was a brief discussion here: