0 votes

Our Office 365 licenses are in a couple different SKU's E3, and E4 licenses. The E4 is an older set of licenses, and we purchased more and was assigned E3's. There are essentialy the same. However it causes me to have to manage the licenses. Is there a way to assign a license based on availablity?

So for example this is what I'm assigning now:

BUT, if the E3 licenses are all used, I'd like it to try to Assign the E4 instead.

by (1.4k points)

1 Answer

0 votes
by (215k points)
selected by
Best answer


Yes, there is. You need to use a script for this purpose. We've added a sample script that does the job to our Script Repository: Assign Office 365 license based on availability.

If you are assigning licenses automatically, for example, using a Business Rule, replace the Activate or Modify Office 365 account with the Run a program or PowerShell script action that runs the script from the repository.

If you want to assign the licenses manually, you can create a Custom Command that runs a script for this purpose.


Great! Works perfect, thanks!

Related questions

0 votes
1 answer

I need a report that will show what O365 Licenses each user has based on Office. If can emailed or with in reports

asked Jan 17, 2020 by hgletifer (1.3k points)
0 votes
1 answer

Hi, I try to make a report for our SAM to show all users with a specific license. But I fail to even find anything. I tried, among many ... .DirectorySearcher.AppendFilter("(adm-O365AccountLicenses=POWER_BI_STANDARD)") But I get nothing. Please advice.

asked May 20, 2021 by KristofferJ (80 points)
0 votes
1 answer

We need to capture the Office365 (if any) on the user account before we disable. These are accounts taht are temps or contractors that we disabled and re enable for ... Example of group name is Office-E3-EXO and we want to capture it to CustomAttributeText31

asked Aug 4, 2020 by willy-wally (3.2k points)
0 votes
1 answer

I'm trying to retrive the Microsoft 365 License product name in a report as the 'Office 365 License' attribute in Adaxes shows each individual licensed product e.g. ... 365 F3"} } $productnames = $productnames -join ", " $Context.Value = $productnames

asked Jul 27, 2020 by richarddewis (240 points)
0 votes
1 answer

When attempting to add an O365 license to an AD account via the Adaxes admin console, I noticed that it is missing some license types (e.g. Azure AD Premium P1). In ... Is there a way to configure Adaxes to pull all available license types from O365? Thanks!

asked Oct 22, 2019 by EricB (70 points)
2,779 questions
2,512 answers
25,896 users