
You need to have the permissions
microsoft.directory/groups/assignLicense
As a User Administrator or License Administrator you should have those permissions.
You can check here which roles have the right permissions
https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/permissions-reference