'No Licenses Available' when creating user in 365

'No Licenses Available' when creating user in 365

When using a user creation template to create a new user in ADManager, on the 365 tab under licenses it reads ' No Licenses Available'. When looking at the report and via the MS site there are license available.

How to fix this and assign licenses when creating new users?