If your group names are unique, you can use a query like this to show the GroupName. You must isolate it to a particular view by using the GUID of that view in the query. In this example, you would replace the example GUID with the GUID of the AD view. (Get the GUID of the view by right-clicking the view and choosing Properties, then copying down the GUID.)
Does this help? Not sure if your group names are unique. For example:
- Group A
- ---Workstations
- ---Servers
- Group B
- ---Workstations
- ---Servers
Would cause ambiguous query results because this doesn't breadcrumb the OG.
This is right from SQL studio, be sure to format properly for a SQL query from within Altiris.
USE Symantec_CMDB
SELECT
v1.[Name] as 'ComputerName',
Item.Name as 'GroupName',
Item.Description as 'GroupDescription',
v1.Guid as 'ComputerGuid',
ScopeMembership.ScopeCollectionGuid as 'GroupGuid',
Item.SecurityGuid
FROM
vComputer v1
JOIN ScopeMembership ON v1.Guid=ScopeMembership.ResourceGuid
JOIN ScopeCollection ON ScopeMembership.ScopeCollectionGuid=ScopeCollection.ScopeCollectionGuid
JOIN Item ON ScopeMembership.ScopeCollectionGuid=Item.SecurityGuid
--Return results only if the Organizational View is the Active Directory Organizational View
WHERE ScopeCollection.ScopeSetGuid='{AB123C45-D67E-8901-FGH2-345678I90123}'