Having trouble getting @MyGroups to work in GI Filters
I just happen to see this posting and just wrote a sample inquiry for someone on how to make it work. Depending on your version, the filters in the inquiry may not work but at least since 2017R2 you can add @mygroups and @myworktree into the inquiry conditions and it does work. The trick is making sure you are using a schema field for the workgroupid that is of type PXCompanyTreeSelector. I have uploaded a simple inquiry using EPEmployee and EPCompanyTreeMember tables.