Hello there,
This can be done using the Azure AD admin centre.
This article walks you through assigning product licenses to a group of users and verifying that they're licensed correctly in Azure Active Directory (Azure AD), part of Microsoft Entra.
Assign licenses to users by group membership in Azure Active Directory https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/licensing-groups-assign
This article describes how to use Group Policy to automatically distribute programs to client computers or users.
Manage third-party app subscriptions for your organization https://learn.microsoft.com/en-us/microsoft-365/commerce/manage-saas-apps?view=o365-worldwide
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–