Skip to main content
1-Visitor
March 1, 2011
Question

PDMLink: Report Manager for link user/group

  • March 1, 2011
  • 3 replies
  • 11096 views

Hello

I'm new on Windchill so the question to come will probably be easy to answer.

I want to create a small report that shows the link between all my users and the associated groups they belong to (at site level) - what I can see in Principal Administrator but for all users in one report.

Since I couldn't find any standard report or other functionality to do that, I wanted to design my own one with report manager.

I could find the user (WTuser) data, the group( WTgroup) data but I can't find the link between them.

Can one of you help me to define the object I need to show these links ?

Thank you !!!

Regards

Benoit

3 replies

1-Visitor
March 9, 2011

Just import this report:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qml SYSTEM "/wt/query/qml/qml.dtd">
<qml>
<statement>
<query>
<select>
<object alias="wt.org.MembershipLink" heading="Идентификатор" propertyName="roleBObject">
<property name="roleBObject"/>
</object>
<column alias="User or Group (wt.org.WTPrincipal)" heading="Name" propertyName="name" type="java.lang.String">
name
</column>
</select>
<from>
<table alias="wt.org.MembershipLink">
wt.org.MembershipLink
</table>
<table alias="User or Group (wt.org.WTPrincipal)">
wt.org.WTPrincipal
</table>
</from>
<orderBy>
<orderByItem>
<columnTarget heading="Name"/>
</orderByItem>
</orderBy>
<referenceJoin>
<join name="roleAObjectRef">
<aliasTarget alias="wt.org.MembershipLink"/>
<aliasTarget alias="User or Group (wt.org.WTPrincipal)"/>
</join>
</referenceJoin>
</query>
</statement>
</qml>

1-Visitor
March 11, 2011

Hello

thanks a lot for your help but it doesn't answer my need.

I expect the link between group and user which are both at site level.

something like

user1 GrpAuthorSpec

user1 GrpAuthorDev

user2 GrpAuthorDev

user3 GrpAuthorSpec

with your report, I think it's more a link between roles and groups or something like that.

If you have another idea, you're higly welcome. In any case, thanks again

Benoit

1-Visitor
August 6, 2012

original post was missing quotes around /wt/query/qml/qml.dtd

I also solved my 2nd question. see attached. This works with both 9.1 and 10 PDMLink

22-Sapphire I
August 6, 2012

I was interested in a report that shows the same info as displayed at Organiation, Groups and it sounded like this report delivered that.

But - It appears that this reports on context teams (e.g. what Users / Groups are mapped to Roles in a Product). I have another report that already does that. I just imported and ran the updated qml - it returns > 50000 entries and so doesn't run. Something still wrong.

14-Alexandrite
October 10, 2012

According to the PTC knowlege base this is not possible.

See https://www.ptc.com/appserver/cs/view/solution.jsp?n=CS22167

But I had a simular problem. I needed to get a list of the groups and its members.

Since the User-Group Information is stored win windchillDS I tried a LDAP search.

Maybe this helps you further.Here is an example (groupname & users are in bold):


C:\ptc\Windchill_10.0\Windchill>ldapsearch -h vm-net297p -p 389 -D cn=Manager -w <LDAP_ADMIN_PASSWORD> -b o=ptc -z 30 "(objectclass=

groupOfUniqueNames)" uniqueMember

cn=Administrators,ou=people,cn=AdministrativeLdap,cn=Windchill_10.0,o=ptc

uniqueMember=uid=wcadmin,ou=people,cn=AdministrativeLdap,cn=Windchill_10.0,o=ptc

...

cn=CAD-User,cn=Public,o=NET,ou=people,cn=AdministrativeLdap,cn=Windchill_10.0,o=ptc

uniqueMember=uid=asterix,ou=people,cn=AdministrativeLdap,cn=Windchill_10.0,o=ptc

uniqueMember=uid=obelix,ou=people,cn=AdministrativeLdap,cn=Windchill_10.0,o=ptc

cn=Gallier,cn=Public,o=NET,ou=people,cn=AdministrativeLdap,cn=Windchill_10.0,o=ptc

uniqueMember=uid=asterix,ou=people,cn=AdministrativeLdap,cn=Windchill_10.0,o=ptc

uniqueMember=uid=obelix,ou=people,cn=AdministrativeLdap,cn=Windchill_10.0,o=ptc


ldapsearch help:

C:\ptc\Windchill_10.0\Windchill>ldapsearch

usage: ldapsearch [options] filter [attributes...]

where:

filter RFC-1558 compliant LDAP search filter

attributes whitespace-separated list of attributes to retrieve

(if no attribute list is given, all are retrieved)

options:

-n show what would be done but don't actually search

-v run in verbose mode (diagnostics to standard output)

-t write values to files in /tmp

-u include User Friendly entry names in the output

-A retrieve attribute names only (no values)

-B do not suppress printing of non-ASCII values

-L print entries in LDIF format (-B is implied)

-X print entries in XML format

-R do not automatically follow referrals

-d level set LDAP debugging level to `level'

-F sep print `sep' instead of `=' between attribute names and values

-S attr sort the results by attribute `attr'

-f file perform sequence of searches listed in `file'

-b basedn base dn for search

-s scope one of base, one, or sub (search scope)

-a deref one of never, always, search, or find (alias dereferencing)

-l time lim time limit (in seconds) for search

-z size lim size limit (in entries) for search

-D binddn bind dn

-w passwd bind passwd (for simple authentication)

-h host ldap server

-p port port on ldap server

-W Wallet Wallet location

-P Wpasswd Wallet Password

-U SSLAuth SSL Authentication Mode

-q prompt for simple bind password

-Q prompt for SSL wallet password

-E charset Character Set Encoding

-Z [enable native authentication]

-M send ManageDsaIT control to server

-G send RequiredAttribute control to server

-C send connectBy control to server

-T [-]sort_attr send serverSort control to server

-j page_size send Paging control to server

C:\ptc\Windchill_10.0\Windchill>

1-Visitor
January 31, 2017

I had similar requirement and achieved by LDAP & WTUSer Download.

My client had requested user and User group report in following in an excel format.

User Group

User ID

Full Name

Last Name

Email ID.

I followed following steps to achieve the requirement

  1. Login to LDAP and goto Manage Entries>>o=PTC >>Configuration>>Public
  2. Copy the group name to 1st column in Excel
  3. Copy the UIDs manually to 2nd column in Excel
  4. Using excel features filter to User ID
  5. Export WTUser table to Excel
  6. By Using Excel features (Vlookps and Hlookup) merge the Full Name, Last Name and Email ED with User group and User ID excel.

Note- This is workable solution if you have less number of user groups.

Thank you,

Suresh M.S