I wrote this descriptively to help you, DTreeACL contains one row each for each ACL present in the Object.The last statement will show you what you are looking for
but I like to be less cryptic .If you join KUAF.ID to DCL.RightID you can then find the real name of user or group as well
--First enumerate the Individual dataid in a folder
select * from DTreeAncestors DTA where DTA.AncestorID=24276345 ;
--Get name etc by joing to DTREE enumerate the Individual dataid in a folder
select DT.Name,DT.DataID,DT.SubType from DTreeAncestors DTA ,DTree DT where DT.DataID=DTA.DataID
and DTA.AncestorID=24276345 ;
--For each DataID get a row of DtreeACL Info for each DataID it will have 4 stanadrd rows standing for User,Group,
--PA&System and any below the line ACL
select DCL.OwnerID, DCL.ParentID, DCL.DataID, DCL.RightID, DCL.[Permissions], DCL.ACLType, DCL.See, DT.Name,DT.DataID,DT.SubType
from DTreeAncestors DTA ,DTree DT ,DTreeACL DCL where DT.DataID=DTA.DataID
and DCL.DataID = DT.DataID and DTA.AncestorID=24276345 ;
Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010