M365 Connector automatic user licensing in M365

I just set up the M365 connector. Users are successfully synchronised but every user instantly gets a license, when available. Is there a way and if so, where can I set that Users will be synchronised to M365 but don’t instantly get a license? Might there as well be a way to manage licenses via groups so that users are separated into groups to say wether they get license XY or get no license? Hope you know what I mean and know something that helps.