Skip to main content
1-Visitor
Mar 28, 2018 12:42 PM UTC
Solved

Export a list of users from Windchill 10.2

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!

1-Visitor
Apr 6, 2018 1:32 PM UTC

Here is how PTC Support answered the question.

 

3 replies

ShirishMorkhade
16-Pearl
Mar 28, 2018 1:27 PM UTC

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

Translate
1-Visitor
Mar 28, 2018 2:06 PM UTC

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.

 

 

 

Translate
Invisigoth1-VisitorAuthorAnswer
1-Visitor
Apr 6, 2018 1:32 PM UTC

Here is how PTC Support answered the question.

 

Translate