In my apex code for creating a user, I'm setting the following flags which according to the documentation should turn off email alerts for content users
UserPermissionsSFContentUser = false, UserPreferencesContentNoEmail = true, UserPreferencesContentEmailAsAndWhen = false
However, the flag 'Receive Salesforce CRM Content Alerts as Daily Digest' is still being enabled on user creation. Is there something else that I need to do in my code or am I setting something incorrectly?
Any help on this is greatly appreciated.