Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

How To: Get all TDadmins for all projects in ALM/QC

$
0
0

Issue: If you have a medium to large QC/ALM environment and don't have a central admin group for all projects, how do you quickly find all of the current project admins?

 

Solution: It's not elegant, but it is simple and easily modified by someone that is not a SQL master.  Running this query, which will build a second query to get the actual answer that you can send to a TXT or spreadsheet.

 

SELECT 'SELECT ''' || Domain_Name, '\', Project_Name || ''' AS DB_NAME, US_Username, US_Group FROM ' || DB_NAME || '.USERS WHERE US_Group LIKE ''1%'' UNION ALL'
FROM QCSITEADMIN_DB.PROJECTS
WHERE PR_IS_ACTIVE = 'Y'
ORDER BY DB_NAME ASC;
 

This will generate a SQL statement for each active project/template in your environment, like this:


  SELECT 'Default\ AccessRequest' AS DB_NAME, US_Username, US_Group FROM default_accessrequest_db.USERS WHERE US_Group LIKE '1%' UNION ALL

 

To run the output, delete the UNION ALL from the final project.

 

The output will then list each project, soreted by domain and name, listing the TDadmins.

 

 

 


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>