User1: 5; User2: 2
Microsoft Purview Data Loss Prevention policies identify sensitive information and enforce access restrictions according to configured rule conditions and actions.
The DLP rule in this scenario detects the IP Address sensitive information type at High confidence, requiring at least two instances.
Therefore, files containing fewer than two qualifying IP addresses do not match the condition. Supported files containing two or more qualifying IP addresses are subject to the configured restrictions.
The rule uses Restrict access or encrypt the content in Microsoft 365 locations, with Block everyone selected.
Microsoft documents that this action retains access for the content owner, last modifier, and primary site administrator. Consequently, User1, as Site1 owner, can access all five files.
User2 is a Visitor and does not receive those exemptions. Under the intended scenario, User2 can access File1.docx, which contains only one IP address, and File4.bmp, whose image content is not scanned by the ordinary text-based DLP condition.
The other three files satisfy the sensitive-information threshold and are blocked.
Technical qualification: Microsoft Purview also supports optional OCR scanning for image files. If OCR is enabled for SharePoint and the bitmap ' s content qualifies, File4.bmp could also be restricted. The answer 5 and 2 assumes OCR is not enabled.
Microsoft References:
https://learn.microsoft.com/en-us/purview/dlp-policy-reference
https://learn.microsoft.com/en-us/purview/ocr-learn-about