Which preposition to use with ostracize

as Occurrences 1%

During the interval, Soviet Russia was attacked, denounced, boycotted, encircled, invaded, ostracized as the leading figure in "an international communist conspiracy".

in Occurrences 1%

We are ostracized in many offices because we are members of the union; and though the principle is right, the disadvantages are so many that we cannot much longer hold together....

Which preposition to use with  ostracize