cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

An existing Access Control Rule (ACL) cannot be updated via the loadFromFile utility

An existing Access Control Rule (ACL) cannot be updated via the loadFromFile utility

 

I am currently trying to add a delete access to all our products. All access control rules are currently defined at product/project level.

I therefore tried to use my old loadfile method of loading an access into an existing access rule.

I have this loader file:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX20.dtd">
<NmLoader>
<csvAccessRule handler="wt.load.LoadUser.createAccessRule">
<csvuser/>
<csvdomain>/Default</csvdomain>
<csvtypeId>wt.doc.WTDocument</csvtypeId>
<csvpermission>+</csvpermission>
<csvprincipal>AUTHOR</csvprincipal>
<csvpermissionList>5</csvpermissionList>
<csvstate>DRAFT</csvstate>
</csvAccessRule>
</NmLoader>

 

I run it this way:
windchill wt.load.LoadFromFile -d "D:\Policyloader\Policyloaderinput\AUTHOR.xml" -CONT_PATH \"wt.inf.container.OrgContainer=NN/wt.pdmlink.PDMLinkProduct=De9\"

 

Much to my surprise, it gave me an error and was not loaded.

I then tried to add all access for the given rule. Same result.

If I deleted the rule, the loader worked.

I now need to add it at org level and all the rest is specified at product level. For transparency reason, I would like to have all the access rules defined at the same level.

My ideas is therefore: Let the loader modify an existing access rule. As a minimum, let it add a new access to an existing rule.

I would like to be able to delete rules by loader, but this is not possible either.