Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: Need query

$
0
0

You can get this info "partially" from ALM's site admin data base.

 

How to know what is the site admin's data base name?

For example:

Go to PC where ALM application server is installed.

Go to place where ALM is installed.

By default it's C:\ProgramData\HP\ALM - for windows.

then go to C:\ProgramData\HP\ALM\application\20qcbin.war\WEB-INF

 

There is a file siteadmin.xml

 

In that file there is info like this:

<DbUrl>jdbc:mercury:sqlserver://win12sql12:1433</DbUrl>

<DbName>qcsiteadmin_db_b863</DbName>

 

So in my case - site admin DB is on PC with name win12sql12 and data base name is qcsiteadmin_db_b863

 

Now.

 

I can go to ALM.

Create new Excel report.

make SQL like:

SELECT  [qcsiteadmin_db_b863].[td].[USERS].USER_NAME,
[qcsiteadmin_db_b863].[td].[PROJECTS].PROJECT_NAME,
[qcsiteadmin_db_b863].[td].[PROJECTS].DOMAIN_NAME
FROM  [qcsiteadmin_db_b863].[td].[USERS]
Inner Join [qcsiteadmin_db_b863].[td].[USERS_PROJECTS]
on  [qcsiteadmin_db_b863].[td].[USERS].[USER_ID] = [qcsiteadmin_db_b863].[td].[USERS_PROJECTS].[USER_ID]
inner join [qcsiteadmin_db_b863].[td].[PROJECTS]
on [qcsiteadmin_db_b863].[td].[USERS_PROJECTS].[PROJECT_ID] =
[qcsiteadmin_db_b863].[td].[PROJECTS].[PROJECT_ID]

 And I will now what user is in what project and what domain.

 

To know if the user is an Admin or not - I need to check if that user is in TDAdmin user group.

That info is located on project's data base itself.

 

So you need to add a join that will use DB name's and will check project's USERS and GROUPS table.

Those two are linked with GR_LOGICAL_NAME column I think.

 

BUT that will be more complicated - not sure how to do that ;)

 

 


Viewing all articles
Browse latest Browse all 14708

Trending Articles



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