On the Account tab for the user, under Teams upgrade, click Edit. You can set the Coexistence mode. Modes other than Teams Only can only be applied to users homed in Skype for Business Server on-premises, and conversely only users homed in the cloud can have TeamsOnly mode.