Hi @administrator · Thank you for reaching out.
You should be signed in to the Azure Portal with a user account assigned with either Global Administrator or License Administrator role. I have tested assigning licenses to Groups via GUI and was successfully able to enumerate groups in order to assign licenses.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.