I recall that 7z is a type of archive compressed with 7-Zip or similar software. To open a password-protected 7z, you typically need to enter the password. If the user can't remember it, the only legitimate way is to retrieve the password through official means. Brute-forcing or using a dictionary attack might be possible, but those take time and might violate terms of service or even laws if done without authorization.