Ciao Matteo,
If you look through the archives, you will see I struggled with this
problem too. A few people suggested some alternatives, but in the end
I did not find anything really satisfying which did not require a ton
of work for me.
Another piece of the story is users requesting a license but not using
it (I don't think there is a solution there, other than perhaps make
them "pay" something with their allocation to discourage the problem)
and others NOT requesting the license but using it nevertheless,
throwing up slurm count. I think the latter could be solved
programmatically in slurm, but it felt like too much work compared to
simply educating the users... Depending on your userbase (and their
well-behaveness) you might or might not have this issue.
Cheers,
Davide