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
Kind of late but would it have been wise to default these methods to use the current user id unless specified?