Skip to main content
14-Alexandrite
October 22, 2020
Solved

How to get the Alternate usernames of WTUser using API

  • October 22, 2020
  • 3 replies
  • 4099 views

Hi,

 

Is it possible to retrieve the value of Alternate user names of WTUser with API?

 

Best answer by Navku

Using WRS Principal Domain, Retrieve the user's names and all details.

3 replies

5-Regular Member
October 23, 2020

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

Navku14-AlexandriteAuthor
14-Alexandrite
October 23, 2020

Hi ftian,

 

Thanks for the Reply,

 

Is there any use in providing alternate names for user?

5-Regular Member
October 26, 2020

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

Navku14-AlexandriteAuthorAnswer
14-Alexandrite
June 24, 2021

Using WRS Principal Domain, Retrieve the user's names and all details.

12-Amethyst
November 7, 2025

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);