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