In my company i have few domains, one local and other Office 365 (Azure). I want to use "Teams" in local domain, but authorisation for "teams" should be by Office 365 domain. How can i save credentials for Teams to not write them every login in local domain!
Typically, if your local AD has a .local domain, add the domain in Azure to local AD as a UPN suffix to all users or change the UPN to the external domain. Then install Azure AD Connect and synchronise the local identities with the cloud identities in Azure AD.