0 votes

I am wondering what the expected behavior is, and what troubleshooting can be done, for this issue:

We have a few tenants listed under Cloud Services > Office 365
We purchase licenses in the o365 portal, and they show as available.
2 hours later we create an o365 user in Adaxes, but it fails because Adaxes shows that no licenses are available.
I right-click on the tenant and hit "Update Data"
Then Adaxes shows the correct license count and a user can be created.

I am wondering how often Adaxes polls o365 for updated license info?
Is there a way to change that interval?
Is there a way to get a notification if Adaxes cannot update the license data?

Our techs use the web interface, and don't have access to the Adaxes Administration Console, so they come to me when the license count is wrong. If I know how long it should take I can let them know, but they don't have access to force the license update themselves.

Thanks,
Jason

by (540 points)

1 Answer

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

Hello Jason,

I am wondering how often Adaxes polls o365 for updated license info?

Be default, Adaxes updates the cache of Office 365 tenant data every 3 hours.

Is there a way to change that interval?

It is possible starting with Adaxes version 2018.1. To check the version you are currently using:

  1. Launch Adaxes Administration Console.
  2. Right-click your service.
  3. In the context menu, click Properties.
  4. Adaxes version will be displayed on the General tab.

Is there a way to get a notification if Adaxes cannot update the license data?

Unfortunately, there is no such possibility.

0

Thanks for your response. Where do I change that interval?

0

Hello Jason,

As we understand, you are using Adaxes version 2018.1 or later. In this case, you can update the interval using the below script. In the script, the $hours variable specifies how often Adaxes will update the cache of Office 365 tenants data in hours. The script should be executed in Windows PowerShell on the computer where Adaxes service is installed. When prompted, specify the credentials of the Adaxes service account (specified during Adaxes installation).

[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

$hours = 2 # TODO modify me (hours)

$updateDataPeriodHours = New-TimeSpan -Hours $hours

# Bind to Adaxes service
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")

# Bind to the 'Configuration Set Settings' container
$path = $admService.Backend.GetConfigurationContainerPath("ConfigurationSetSettings")

# Update configuration parameter
$credential = Get-Credential
$settings = $admService.OpenObject($path, $credential.UserName,`
    $credential.GetNetworkCredential().Password, 0)

$settings.SetParameter("O365.UpdateTenantDataPeriod", $updateDataPeriodHours)]
0

Great, thank you.

Related questions

0 votes
1 answer

What is the easiest way to reset the license calculation for ADAXES back to say a new installation? We've unmanaged (manually) a number of accounts and we'd like to add ... that would allow us to simply "start over" in terms of licensing. Thanks in advance.

asked Oct 19, 2016 by VTPatsFan (610 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 (260 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)
3,588 questions
3,277 answers
8,303 comments
548,102 users