List all assets associated wtih a username/user ID
Created: 17 Oct 2012 | 3 comments
Does anyone have insight on how to build a query in Altiris 7.1 to display all assets assigned to a username or user ID?
Discussion Filed Under:
Comments 3 Comments • Jump to latest comment
Hello Bill,
Are you interested in all asset types or specific assets?
I would suggest you start from the database with the user name or user id.
If you can craft a SQL query yourself, you are best starting in the Management Studio and looking around in the database to find the tables or view that contains the information you need.
Here are some key queries I use whenever I need to complete a task like this:
Get SMP data classes that may contain user information:
Get a list of tables that have a certain column:
select so.name as 'Table', sc.name as 'Column' from sys.objects so join sys.columns sc on so.object_id = sc.object_id where sc.name like '%user%' order by so.name, sc.nameWith the result you can then try to map the different tables, with the following keys (again) to link them together:
Ludovic FERRÉ
Principal Remote Product Specialist
Symantec
Need help with IIS log files? Check out the self-service portal on http://aila.15-cloud.fr/
For a view
try this,
SELECT distinct dbo.Inv_AeX_AC_Identification.[Name]
,dbo.Inv_UG_User_Account.[User Name],[Full Name]
FROM
dbo.Inv_AeX_AC_Identification,
dbo.Inv_UG_User_Account
WHERE
dbo.Inv_AeX_AC_Identification._ResourceGuid=dbo.Inv_UG_User_Account._ResourceGuid
Dear Bill.vannort please reply if your issue is resolved
Would you like to reply?
Login or Register to post your comment.