The Shulchan Aruch · Orach Chayim
אורח חיים שפ״הOrach Chayim 385
Siman 385 of 697 in Orach Chayim — 4 se'ifim
הלכות ערוביןLaws of Eruvin· siman 385
Se’if 1א׳
צְדוֹקִי הֲרֵי הוּא כְּיִשְׂרָאֵל, וּמְבַטֵּל רְשׁוּת. אֲבָל עֵרוּב אֵינוֹ מוֹעִיל כֵּיוָן שֶׁאֵינוֹ מוֹדֶה בְּעֵרוּב.
Laws of Sadducee and apostates in eruv. Containing 4 paragraphs. A Sadducee is like a Jew and can nullify his domain, but an eruv is not effective since he does not acknowledge the validity of eruv.
Se’if 2ב׳
כּוּתִי הֲרֵי הוּא כִּשְׁאָר עַמִּים, וְאֵין לוֹ תַּקָּנָה אֶלָּא בִּשְׂכִירוּת.
A Samaritan is like other non-Jews, and has no remedy except through rental [of his domain].
Se’if 3ג׳
יִשְׂרָאֵל מוּמָר לַעֲבוֹדַת אֱלִילִים אוֹ לְחַלֵּל שַׁבָּתוֹת בְּפַרְהֶסְיָא, אֲפִלּוּ אֵינוֹ מְחַלְּלוֹ אֶלָּא בְּאִסוּר דְּרַבָּנָן, הֲרֵי הוּא כְּעַכּוּ"ם. וְאִם אֵינוֹ מְחַלֵּל אֶלָּא בְּצִנְעָה, אֲפִלּוּ מְחַלְּלוֹ בְּאִסוּר דְּאוֹרַיְיתָא, הֲרֵי הוּא כְּיִשְׂרָאֵל וּמְבַטֵּל רְשׁוּת.
A Jew who has apostatized to idolatry, or who desecrates the Sabbath publicly — even if he violates only a rabbinic prohibition — is like a non-Jew. But if he violates only in private, even a Torah prohibition, he is like a Jew and can nullify his domain.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0