Add isAdmin and isInGroup methods for the group manager

To fix #12851

This is apparently also hit by #12888

@icewind1991 @LukasReschke @arkascha @MorrisJobke @DeepDiver1975 @nickvergessen please review
Nope, the method interface is much clearer if you require the userId to be passed in.