Skip to main content
1-Visitor
March 28, 2018
Solved

Export a list of users from Windchill 10.2

  • March 28, 2018
  • 2 replies
  • 2621 views

Hello,

 

This is the question.  I see this was asked/answered back in 2006 with respect to Intralink 3.4.  What about Windchill 10.2?  I can't find out any info from the knowledge base or product docs.

 

Thanks!

Best answer by Invisigoth

Here is how PTC Support answered the question.

 

2 replies

ShirishMorkhade
16-Pearl
March 28, 2018

Hi @Invisigoth,

This functionality is not availble from UI to export users list to any human readable format. But you can definetly use WC API to get list of all users.

You can below code snippet:

 

QuerySpec qs = null;
QueryResult qr = null;
qs = new QuerySpec(WTUser.class);
qs.appendWhere( new SearchCondition(WTUser.class, WTUser.NAME, SearchCondition.LIKE, "%", false), new int[] {});
System.out.println(" QS :: " + qs);
qr = PersistenceHelper.manager.find((StatementSpec)qs);

I hope this helps you.

 

Thanks,

Shirish

1-Visitor
March 28, 2018

Thank you Shirish.

This confirms what I suspected, that this would be something done programmatically.

Where or how would I use such code? From your reply, I am understanding that I would need to create some sort of a program that would use your snippet to extract a user list.  This is a bit beyond my paygrade, so I appreciate any further info to be able to explain this to the interested parties.

 

 

 

Invisigoth1-VisitorAuthorAnswer
1-Visitor
April 6, 2018

Here is how PTC Support answered the question.