AAAPI_IMPORTACCESSCONTROL returns valid record count but nothing happens

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.

Parents
  • : ( ... I think a lot of additional code is needed after the Import method ... but I have a sneaky suspicion that this task cannot be automated. I found ... AAAPI_CONFIRMPROJECTSECURITYCHANGE which asks how you want to apply the access control update. If this method is a MUST then this task cannot be "scripted" ... (I am probably heading very fast in the wrong direction) ..
    Thx 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 

Reply
  • 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 

Children