Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
Is it possible to retrieve the value of Alternate user names of WTUser with API?
Solved! Go to Solution.
Using WRS Principal Domain, Retrieve the user's names and all details.
https://www.ptc.com/en/support/article/CS137127
- Then no supported.
While if you just print a user, the attributes could include several UIDs, besides the one same as name, others are alternate names.
Cliff
Hi ftian,
Thanks for the Reply,
Is there any use in providing alternate names for user?
No really usage, just an alias of user's login name - user will have two logins and anyone can be used to login Windchill, while with same WTUser/ User Name.
- if look LDAP, you will find two UID attributes for the DN
Cliff
Using WRS Principal Domain, Retrieve the user's names and all details.
Just in case someone else is searching for that here is how to do it using java API
wt.fc.ObjectIdentifier oid = wt.fc.ObjectIdentifier.newObjectIdentifier("wt.org.WTUser:123");
wt.org.WTUser theUser = (wt.org.WTUser) wt.fc.PersistenceHelper.manager.refresh(oid);
String alternateName = wt.org.OrganizationServicesHelper.getAlternateName(theUser, WTUser.ALT_USER_NAME_1);
