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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

ACL in Subdomain Issue

pwilliams-3
11-Garnet

ACL in Subdomain Issue

10.1 M040

Hi Everyone,
I have quite a zinger here that event after 2 sessions with a PTC TSE he couldn't figure it out. So here's the setup:


1. At the /Default domain level I have Read/Download ACL for wt.change2.WTChangeOrder2 (Change Notice).

2. At the /Default/Change Control domain level I have Create/Modify ACL for wt.change2.WTChangeOrder2|com.steelcase.CNSoftType (Change Notice Soft Type).

3. OIR for CNSoftType sets the folder.id to /Default/Change Control.

Now when a user tries to create the CNSoftType object Windchill responds with an error message stating that the user does not have access to create this object. When I turn on verbose ACL logging I see that Windchill is trying to create my CNSoftType object in the /Default domain. I have a similar setup with WTPart soft types and the ACLs work just fine. Has anyone else had an issue with ACLs in a subdomain specifically for Change objects?

Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image003.jpg@01CFE177.2DED06A0]

12 REPLIES 12

Does user have Modify on the Cabinet for the Product and Modify on the Folder where the CN will be created?

At the /Default domain the TeamMembers role has Read/Modify:

[cid:image001.jpg@01CFE17E.05521CB0]

That ACL is then inherited down to the /Default/Change Control domain. So, this ACL is not explicitly set at the subdomain:

[cid:image002.jpg@01CFE17E.05521CB0]

When you say "Product", do you just mean the /Default domain?

Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image004.jpg@01CFE17E.05521CB0]

Sounds like a composite OIR issue or that an OIR is not enabled. Are you
sure ID testing with is in the role/principal on subdomain?



If not these, advanced or basic lifecycle set on your soft typed object?



Keep in mind change activities are cabinet based, so you cannot easily
disable modify at the cabinet level, only on subfolder without a few extra
tricks.



What MOR of Windchill?






Re-reading now... Didn't read carefully before.
Doesn't appear that permissions are the issue at all but folder location is (from the error message).

Can admin create this? Can Manager of the Product?

Seems that there may be a typo in the folder name. If you temporarily remove the statements about folder.id from the OIR, can it be created?

If admin cannot create try escaping the space in your folder name.

Maybe a stupid question but did you change the domain association on the folder you want this acl to be active to the subdomain.


If you did not it remains linked to the default domain in which only the read/download acl applies.

The folder is correctly associated to the domain.

Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image001.jpg@01CFE227.581E5AE0]

>> At the /Default/Change Control domain level I have Create/Modify ACL for
wt.change2.WTChangeOrder2|com.steelcase.CNSoftType (Change Notice Soft
Type).



What state is the above ACL set to? Open?



What product/container template was used to create this? Container a
Product, Library, or Project?








Patrick,



Is below what you are seeing? A picture (or many) is worth a thousand
words. I think I understand your issue and would have grasped it faster had
I seen your screen. If the TSE was stuck on this, their training failed
them.



If yes, to achieve what you are after: you have to implement a role or group
that is allowed to create these (only) and define it at default domain of
site, org, or container. Subdomains are only for activities AFTER the object
is created as wizard type picker does not look at the OIR folder.id
configuration to check access control rules. The form processor of the
wizard might, but therein lies your race condition. In short words, it
doesn't work the way you think it should, so this is not a zinger, just
typical Windchill conundrums.



If you only want this soft typed CN of content in that particular folder,
you can grant modify on the folder; deny everyone else; principal is the
same group or role granted create permission for the WTChangeOrder2, but for
the subfolder, within its assigned subdomain.



At the higher levels, grant create permission on a type basis to specific
roles if multiple CN's need to co-exist.



If a user is not in the role, they cannot create it and it usually doesn't
show up in type picker for them, if somehow an ACL winds up violating this
by conflict or other conundrum, the modify for the role/principal will
reject or permit to folder.id basis defined and constrained (ideally) within
OIR.



Adding some screens for you to confirm as you didn't share any:













OIR assuming other settings are inherited from composite OIR:



<attributevalues objtype="wt.change2.WTChangeOrder2">



<attrvalue id="folder.id"&lt;br"/>algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlg
orithm">

<arg>/Default/My CN Folder Restricted Create</arg>

</attrvalue>

</attributevalues>































This is not new to 10.x.





Good luck,

David












RussPratt
5-Regular Member
(To:pwilliams-3)

One other quick check. Does it make a difference whether or not any text is entered into the Proposed Change field of the CR? That field actually is from the "hidden" WTChangeProposal object, so CR Creators must also have permission to create the CP object, or you will get a permission error if anything is entered into this field if they do not.

To get this to work I made the following ACL changes:


1. /Default level:

a. Grant Create to CNSoftType to <specific role=">

b. Grant Create to CASoftType to <specific role=">

2. /Default/Change Control

a. Grant Create to CNSoftType to <specific role=">

b. Grant Create to CASoftType to <specific role=">

c. Grant Read/Modify to Subfolder to Team Members


Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image001.jpg@01CFE2DF.3B3E5980]

Patrick,


Can you share both OOTB CN and soft type CN OIRs.


Disable your current soft type CN OIR and create new OIR. Include only required AttrValue which is different from OOTB OIR value, in you case it is folder.id. If any other AttrValues (lifeCycle.id andteamTemplate.id etc)are same with OOTB OIR than don't include in your new OIR.


Thanks


Ayyappan

Top Tags