Skip to main content
1-Visitor
May 20, 2011
Question

Change permissions from Info*Engine

  • May 20, 2011
  • 1 reply
  • 1986 views

is there a way to use a webject to change the permissions on a Windchill object (change what roles can do what with a folder or WtDocument)? none seems evident...


alternatively, where would a good place be to start looking at the WC APIs to see how to change the permissions on a document or folder in WC? AccessControlManager and friends seem to be correct for looking up what the permissions are, but I'm not seeing where to change them.

1 reply

1-Visitor
June 24, 2011

I dont think there is a direct webject to do so.

You might try to use Apply-Service webject and use the API AccessControlHelper.manager.updateAccessControlRule. But it wont be easy or straightforward.

Alternatively you can try to generate the rules and load it.

<csvAccessRule handler="wt.load.LoadUser.createAccessRule">
<csvuser/>
<csvdomain>/</csvdomain>
<csvtypeId>wt.doc.WTDocument</csvtypeId>
<csvpermission>+</csvpermission>
<csvprincipal>Security Auditors</csvprincipal>
<csvpermissionList>0/</csvpermissionList>
<csvstate>ALL</csvstate>
</csvAccessRule>