The main purpose of this legislation is to enhance the powers of the Office of the Inspector General of the Intelligence Community by granting it law enforcement authority. This change aims to improve oversight and accountability within the intelligence sector, ensuring that any misconduct or illegal activities can be properly investigated and addressed. Key provisions of the legislation include an amendment to the National Security Act of 1947, specifically adding law enforcement authority to the Inspector General's office.