adding missing email address for principal

fixes #8515 


I extracted the code part from #8734 which are unrelated.

@libasys Does this fix the reported stuff from #8515 ?
https://github.com/owncloud/core/issues/8515#issue-33149842