'PowerShell code to copy Sql Server Reporting Services report security/permissions from one user to another

I'm new to Powershell. But I need to find out whether it is possible to mimic a user's permissions on different SSRS reports (as some of these users have permissions to hundreds of reports) and grant these permissions to other AD users. I looked online, but haven't been able to find anything that can do that..yet. Was wondering if this is possible at all.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source