Change permissions from Info*Engine
May 20, 2011
07:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 20, 2011
07:48 AM
Change permissions from Info*Engine
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.
Labels:
- Labels:
-
Other
1 REPLY 1
Jun 24, 2011
02:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 24, 2011
02:43 PM
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>
