Thank you for asking this question on the **Microsoft Q&A Platform. **
The best approach is to install an Azure AD Connect https://learn.microsoft.com/en-us/azure/active-directory/hybrid/whatis-azure-ad-connect
Azure AD Connect is an on-premises Microsoft application that's designed to meet and accomplish your hybrid identity goals.
You can follow these steps https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-install-express
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.