Anders Dissing
Anders Dissing

Reputation: 67

Azure AD Connect Call PowerShell doing sync

Is there any way to call an external script (PowerShell or .exe) doing a Azure AD Connect sync cycle for each user that is sync? I need to call some kind of script to transform a custom attribute and the "Expressions for Attribute Mappings" (Azure AD Connect sync: Functions Reference | Microsoft Docs) does not have the necessary function to do so.

Upvotes: 0

Views: 611

Answers (1)

sikumars-msft
sikumars-msft

Reputation: 336

The Azure AD connect sync scheduler is by default run every 30 minutes. In some cases, you might want to run a sync cycle in between the scheduled cycles or you need to run a different type.

Then you could use Delta or Full Sync to manually run a cycle using PowerShell cmdlet, but in this case it assess all objects that are part of Sync scope. More information, refer this article

Rather, if you need to sync single object then use the Azure AD Connect Single Object Sync tool which is a PowerShell cmdlet that can be used to synchronize an individual object from Active Directory to Azure Active Directory also it generate report which would be useful to investigate and troubleshoot per object synchronization issues.

Upvotes: 1

Related Questions