Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I need to add many Active Directory users into various Windchill LDAP groups. (Intralink 9.1 M060)
As a test, I created my .csv file with one user (me):
UserGroup,,WI_Designers,gc1001,EnterpriseLdap
I then ran loadFromFile and it worked perfectly.
However, when I tried again with different users, it usually failed with this set of ambiguous error messages:
Error detected in createUserGroup <ab1234 wi_designers=">
Loader method wt.load.LoadUser.createUserGroup reported a failure
No objects were imported due to the error.
Unexpected problem in export/import process.
Nested exception is: wt.util.WTException: Loader method wt.load.LoadUser.createUserGroup reported a failure Error loading data from file.
data file = <d:\windchill_wi\loadfiles\wi_group_members.xml,d:\windchill_wi\loadfiles\wi_group_members.xml>
map file = <null,null>
token separator = <null,null>
method = <null,create>
user = <null>
Command line = <{CONT_PATH=/wt.inf.container.OrgContainer=Williams International}>
Unexpected problem in export/import process.
Nested exception is: wt.util.WTException: Loader method wt.load.LoadUser.createUserGroup reported a failure
With some experimenting, I discovered that the reason it worked for some AD users was that I had previously logged into WIndchill as that user or had manually added the user to a group (using the UI). In other words: Windchill already knew of the AD user. However, in each case where the above error occurred, it was a user that had never been "introduced" to Windchill. The user had never logged in, nor had been manually added any group.
What must I do to overcome this issue?
Gerry
I'm having the same issue when attempting to add a user or group to a role in a team of a context. I've already created a call with PTC a while back and they've just replied back with not having an issue with Windchill 9.1 M030. We are in production with Windchill PDMLink/ProjectLink 9.1 M050.
Let's see, you are on Pro/I 9.1 M060 and we're on Windchill 9.1 M050. It sounds like a build issue that broke the functionality.
Thanks to all the replied.
Unfortunately, we now know that this is not possible.
I submitted this issue to PTC as well.
They have confirmed that what I am trying to do is not possible.
An AD user cannot be added to a group using loadFromFile unless the AD user is already a wtuser.
This can happen only if the AD user has logged in at least once into Windowchil, or had been added to a group manually, through the UI.
I asked PTC if there was some way to add a list of AD users to the wtuser table.
They said no.