It's a combination of two points, which should be somewhere in most grammar books. Standard grammar requires the subject pronoun ('they, I , he, etc') after the copulative 'be', and 'who' as subject pronoun/ 'whom' as object of the verb or preposition. Therefore: Was it they whom you asked to finish painting?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.