Hello,
We have been successfully using CSV files, in Project Wise Explorer, for exchanging Access Control settings between folders for about 6 months.
My intention is to automate the process.
I found AAAPI_IMPORTACCESSCONTROL in the SDK and thought .. "that's just what I needed .. Thx Bentley".
The method runs, it returns an integer that appears to be a valid count of access control records.
But nothing happens. The Access Control is not updated/changed.
I am probably missing the .. update Access Controls method ... ?
Thanks for your patience,
Kevin.
Kevin, I have written code to update permissions on a folder structrure based on an identical folder structure. In that code, I had to remove the existing access control before copying the access control from the other folder. Looking at the help, ImportAccessControl simply puts the access control in a buffer, it does not apply it to an object. You will probably need to use aaApi_ApplyAccessControlList to assign the control list to an object. Take a look at the topic Managing Access Control Items in the SDK help.
Answer Verified By: Kevin