Fixes #5387: Special case for root belonging in role based group