WASHINGTON — The Trump administration will no longer issue family visas to same-sex domestic partners of foreign diplomats or employees of international organizations who work in the United States, State Department officials said on Tuesday.

The shift drew sharp criticism from gay rights advocates, including those who work for the United Nations and could be affected. It also applies to people working in the United States for the World Bank, the North Atlantic Treaty Organization and other groups.

The changes took effect on Monday. United Nations employees were notified in a memo last month that only married same-sex partners seeking to accompany newly arrived officials to the United States would be eligible for a G-4 visa.

Under the new State Department rules, foreign couples will need to present proof of marriage to obtain the diplomatic family visas. But only a small number of the United Nations’s 193 member states have legalized same-sex marriage. If necessary, the State Department officials said, legal workarounds could be discussed on a case-by-case basis for couples who are barred from marrying in their home countries.