Hi All,
In Windchill OOTB functionality "The user who creates the context is automatically assigned to the context manager role"
As the product manager has special access, providing this role to Product creator might create issue.
At present, we are removing the user manually from the role after Product creation.
How can we customize to disable this default addition of Product creator to Product Manager in context team.
Solved! Go to Solution.
You could use a listener to detects when a Product is created and then have the listener run code that removes the Product creator from the Product Manager role.
That should produce the results you’re looking for.
It seems you have relegated the Product creator to a user group with limited authority. I can see how that would cause this situation. When creating a new area, the task is delegated to a user who can transactionally setup the area (click the buttons) but long term, you do not want to make a local admin to the area. I think you might run into issues if you try to remove them too quickly before the context is fully setup. Someone needs to be in that role to handle things like ACLS setup, adding users and role, etc. I think you would be better served trusting those users to remove themselves once the right user is added to shift this task to a user set that you do trust to be Product Managers.
"With great power comes great responsibility" - Uncle Ben
You could use a listener to detects when a Product is created and then have the listener run code that removes the Product creator from the Product Manager role.
That should produce the results you’re looking for.
I wrote a utility to remove the creator from the Product Manager role.
In my test Product, "Testing", the creator is wcorgadmin.
Before removal
Run utility (which can be run automatically).
After running utility.
Note the creator, wcorgadmin, has been removed from the role Product Manager.
Seems to work.
I'd be cautious with automation here.. make sure you don't leave the group empty!
Please tell me you’re kidding, @joe_morton
First, there’s no group involved with any of this.
The poster wants to remove the creator, which obviously is a WTUser, from the team role, which is added automatically upon creation of the Product. That’s it! Pretty simple.
How did you make the leap to a group being involved?🤦♂️
Sorry "Role"
My comment should read:
"I'd be cautious with automation here.. make sure you don't leave the role empty!"
No leaps, just a typo 😋