Hosts Scotland have been drawn in the same Commonwealth Games rugby sevens pool as perennial winners New Zealand.
England will have to face Australia in the Glasgow Games while Wales will face South Pacific nations Samoa and Papua New Guinea, as well as Malaysia, in their group.
The All Blacks have won all four Commonwealth gold medals so far and will also take on Nigeria and Canada in their group.
England face Sri Lanka and Uganda in their pool games.
Sixteen teams take part in the tournament, including South Africa, which will be held at Ibrox Stadium on 26-27 July.