If you are using Active Directory in your corporate network, Azure AD Connect is the tool that you need in order to replicate your Users and groups to your Azure Active Directory tenant. It is important to mention that Office/Microsoft 365, Azure and Dynamics online use Azure Active Directory