LPS-49853 Make check on groups on which a role is given site scoped permissions