Copying Permissions From One Folder to Another

Hello, I am working on a tool within ProjectWise with the goal of copying the permissions of one folder to another. I have been trying to use aaApi_SelectAccessControlItems followed by aaApi_ApplyAccessControlList; however, the typeAccess array is not very well described in the sdk nor in the forum posts I have been able to find on the topic. I'm not sure if these functions are the best way of performing this operation either. What I really could use is some guidance on the best way to copy the whole permissions list from one folder to another using the sdk functions. Thanks for taking the time to read.