Creating a dynamic security group in AAD for ADO licenses

Hi all! I want to create a dynamic security group in AAD for all users who have any license for ADO, but it seems like ADO licenses are not a part of the regular “servicePlanId” collection from MS. Google gives very few results on how to accomplish this as well. Do I have to roll my own solution here with an Azure Function or similar to create such a group?

Why do you want this?

I’d be curious to hear more also but I’ve always done the reverse. Populate AD groups with users based on their license then use those groups to drive access levels/group rules to get users k the front door so to speak. I use the same groups to automatically assign vs enterprises and msdns etc. In that portal also. Its basically licensing autopilot.

It takes just 1 group per license type as fat as managing licenses goes.