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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How to retrieve the principals from a product team role

KU_10670946
6-Contributor

How to retrieve the principals from a product team role

As per the original post

 

How to get this information from data base tables How DB tables 

KU_10670946_1-1683226328370.png

 

PDMLinkProduct , WTOrganization ,WTGroup ,RolePrincipalMap, WTRolePrincipal , MembershiLink
I have information about this tables how this link with each other. i wanted to derive from PDMLink product as far as i have made this query but information is incomplete 
SELECT
wtOrg.Name,
prod.namecontainerinfo,
--wtGroup.description,
wtGroup.name AS "TopeLevel",
wtGroupChild.name AS "SubLevel"
FROM
pdmlinkproduct prod
LEFT JOIN WTOrganization wtOrg ON prod.ida3organizationreference = wtOrg.ida2a2
LEFT JOIN WTGroup wtGroup ON prod.ida2a2 = wtGroup.ida3containerreference
LEFT JOIN MembershipLink memlink ON wtGroup.idA2A2 = memlink.idA3A5
LEFT JOIN WTGroup wtGroupChild ON memlink.idA3B5 = wtGroupChild.idA2A2

WHERE
prod.namecontainerinfo = 'Torch Products' AND wtGroupChild.name IS NOT NULL
ORDER BY wtGroup.name ASC;

1 REPLY 1
Announcements


Top Tags