AD as whitelist for getFilteredGroups

Well I’ve been trying to get AD groups added to the users id_token and I’ve had this question open for some time (How to add AD groups to users id_token (working example))

I’ve not yet had any clear guidance on how or if this works so if you do get this working successfully I’d appreciate any feedback or steps (not pointing me to the documentation as I’ve already been through it all).

Thank you