Is there a way to auto sync on prem AD to Azure AD?

Kevin Hinds 1 Reputation point
2022-03-23T00:15:15.813+00:00

For example, I am trying to add a user in our on prem AD and want to automatically sync with azure ad. Is this possible? We use azure-ad-connect

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,513 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 150.5K Reputation points MVP
    2022-03-23T00:34:27.337+00:00

    Sure thing.
    Assuming a sync isnt already in progress, run from powershell on the AADConnect Server

    Start-ADSyncSyncCycle -PolicyType Delta  
    

    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sync-feature-scheduler#:~:text=If%20you%20need%20to%20manually,Initial%20from%20a%20PowerShell%20prompt.

    1 person found this answer helpful.
    0 comments No comments

  2. Carlos Solís Salazar 17,976 Reputation points MVP
    2022-03-23T00:39:34.947+00:00

    Hi @Kevin Hinds

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    With Azure AD Connect you do what you need,

    The synchronization is not automatically, usually, it happens every 30 minutes

    You can force the synchronization with the following Powershell commands on the server where Azure AD Connect is installed:

    Start-ADSyncSyncCycle -PolicyType Delta  
    

    This will only synchronize current changes.

    Run the following command to force a complete sync but note that the length of sync time would be increased.

    Start-ADSyncSyncCycle -PolicyType Initial  
    

    More info: https://techcommunity.microsoft.com/t5/itops-talk-blog/powershell-basics-how-to-force-azuread-connect-to-sync/ba-p/887043

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.

    NOTE: To answer you as quickly as possible, please mention me in your reply.


    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.