cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Export a list of users from Windchill 10.2

Invisigoth
14-Alexandrite

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 ACCEPTED SOLUTION

Accepted Solutions
Invisigoth
14-Alexandrite
(To:Invisigoth)

3 REPLIES 3

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

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.

 

 

 

Invisigoth
14-Alexandrite
(To:Invisigoth)

Here is how PTC Support answered the question.

 

Announcements