One example where we would do sanctions checking (OFAC plus other pertinent lists) on non-customers would be in the area of trade finance, where we would screen agents, insurers, intermediary parties, 3rd party payees, vessels, ports and so on.
Another is wire transfers processed on behalf of correspondent banks; the originating party and beneficiary parties would not be our customers, rather they are our customer's (the correspondent bank) customer.