Script repository
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.