We would like the membership in a distribution group to be based on a particular M365 license a user has (for example, Microsoft Copilot for Microsoft 365 (SKU part number _Microsoft_365Copilot).
If a user has the license, they are in the group. If the user does not have the license, they should not be in the group.
Is there way to do that by making it a rule-based group?