How to treat users as Anonymous in Confidential Groups?
I would add a "anonymous" field in the user account: admin/config/people/accounts/fields

then, in node pre-processing, do a check to see if the author of the node is anonymous and re-write the author field accordingly.