Script repository

Update Microsoft 365 tenant data

Updated on: Jan 18, 2026, Views: 1075

Microsoft 365

The script updates the data of a Microsoft 365 tenant registered in Adaxes. To execute the script, create a business rule, custom command or scheduled task configured for any object type.

In the script, the $tenantName variable specifies the name of the Microsoft 365 tenant as it is specified in Adaxes.

$tenantName = "My tenant" # TODO: modify me

# Bind to the 'Microsoft 365' container.
$configurationContainerPath = $Context.GetWellKnownContainerPath("CloudServicesO365")
$configurationContainer = $Context.BindToObject($configurationContainerPath)

# Update tenant data.
$tenant = $configurationContainer.GetObject("adm-O365Tenant", "CN=$tenantName")
$tenant.ReloadData()

Comments 0

You must be signed in to comment.

    Got questions?

    Support Questions & Answers

    We use cookies to improve your experience.
    By your continued use of this site you accept such use.
    For more details please see our privacy policy and cookies policy.