How to configure Azure AD Custom Tenant Configuration Scripts
Overview
As part of the Atria Azure AD Service Sync Policies, you can assign custom configuration scripts that will be run each time the service is provisioned. This is useful to ensure your customer's tenants are always configured with your preferred best practice settings. The key benefit is that Atria will connect up with the right security context for your customer tenants leveraging the Secure Application Model.
This guide will be updated as we create new script examples. If there are examples you need assistance with please contact us at
support@automate101.com
Applying a script to a Sync Policy
To apply a custom script to a Sync Policy:
- Navigate to Services > Microsoft Online > Sync Policies
- Edit or create a new Sync Policy
- When editing a Sync Policy there is a section called Tenant Configuration Script as shown below
- Specify a custom script to be run i.e. C:\msol\customscript.ps1 (Note: script path should be a local path in the provisioning server or a UNC path accessible in intranet)
- Save your Policy - the script will be run every time the Azure AD service is provisioned or reprovisioned to a customer.
Example Scripts
Enforce MFA with security defaults – or enable/disable security defaults
- Tenant level (https://compliance.microsoft.com/auditlogsearch?viewid=Test%20Tab)
Script Example
- # Get the current Unified Audit Log status
- $AdminAuditLogConfig = Invoke-Command -Session $Session -ScriptBlock {
- return Get-AdminAuditLogConfig
- }
- $UnifiedAuditLogIngestionEnabled = $AdminAuditLogConfig.UnifiedAuditLogIngestionEnabled
- If(!$UnifiedAuditLogIngestionEnabled) {
- # Prerequisite
- Invoke-Command -Session $Session -ScriptBlock {
- Enable-OrganizationCustomization -Confirm:$false -ErrorAction SilentlyContinue
- }
- # Enable Unified Audit Log
- Invoke-Command -Session $Session -ScriptBlock {
- Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $true | Out-Null
- }
- }
Related Articles
Using Azure Active Directory to Authenticate with Atria
Overview It is possible for the Atria users to login into Atria using their Azure AD Account. For doing so, some configuration required both in Azure Active Directory and Atria. Here in this document we are going to show the required configurations ...
Adding a Remote Dedicated Customer
Overview In Atria V15, we now have the ability to manage Private Active Directory's. Customers who have their own AD Infrastructure, gain the same self service and management capabilities of Atria that have worked so well for multi-tenant Active ...
How to Configure Atria to Set Users' Proxy Addresses Attribute in AD
Objective This article provides a guide on how to configure Atria to Set Users' Proxy Addresses Attribute in AD during provisioning Considerations This configuration is OPTIONAL to be implemented and is dependent on your requirement. Once the ...
How to Customize Display Name Patterns
Overview By default, Atria's Display Name Pattern is set to First Name Last Name format. This is used to default the Display Name when creating new users. This guide shows how to customize Display Name Patterns in Atria to meet the needs of ...
Microsoft Online - How to configure your Customer plan
Overview The Microsoft Online service within Atria has been designed from the Ground Up with Customization and flexibility in mind. This means, that it can likely cater with most configuration scenarios you may come across with Microsoft Online ...