Using the Strategy Intelligence Server SDK 10.x, it is possible to get a list of all security filters that are currently linked to a user object. This type of customization can be helpful when trying to determine which security filters are or are not being used by a particular project.
A Link object is used to create an association between two objects such as a user and a security filter, report and a schedule, etc.
The following code demonstrates how to use the IDSSLink and IDSSLinkItem objects to get this information:
Dim oLinkItems As IDSSLinkItems Dim oLinkItem As IDSSLinkItem Dim oSecLink As IDSSLink Dim oUser As IDSSUser Dim oFilter As IDSSMDSecurityFilter Dim oProject As IDSSProject Set oProject = ProjectSession.ObjectSource.Project Set oSecLink = oProject.SystemLink(DssSystemLinkMDSecurity) 'set security link items Set oLinkItems = oSecLink.NewLinkItems oLinkItems.FindItems MsgBox oLinkItems.Count For Each oLinkItem In oLinkItems Set oFilter = oLinkItem.ItemByType(DssTypeMDSecurityFilter) Debug.Print "Filter Name: " & oFilter.Info.Name Next