Custom Property and AD Group association

Hello. I am having some issue with computers falling out of my automatic groups based on AD User groups when users log out. Is it possible to query the active directory groups of a custom BES property for primary user in relevance? For example, I would like to tie the AD groups of the primary user to the system and store them or access them on the fly in relevance. So if the primary user is jgstew, the AD groups for that user are stored or inspected during relevance. When jgstew logged out and a new user called n00b logged in, the computer will not lose all the user AD groups.`

I have tried making a property like this, but can’t seem to make it work:
(name of it, names of groups of it) of ((value of bes property "Primary User" of active directory))

Any experience with storing User AD groups and associating with the Primary User of the system?