Map azure active directory group to functional groups

Hi folks,

i have to map an active directory sec group to an smax functional group via graph. I have no idea how to build it in a szenario. Have any of you done this before? 

Regards markus