Jemaine Clement appeared briefly as an extra in The Lord of the Rings: The Fellowship of the Ring. Bret McKenzie did not appear.
Clement’s role was minor and non-speaking; he is visible only fleetingly. So while technically "in" the film, it was a tiny cameo, not a substantive role.