#office 365 enable pop or imap for a user

To verify if Imap / Pop is enable:

Get-CASMailbox [email protected] |FL ImapEnabled, POPEnabled

To Enable IMAP for specific user

Set-CASMailbox -Identity [email protected] -ImapEnabled:$True

To Enable POP for specific user

Set-CASMailbox -Identity [email protected] -PopEnabled:$True