Sorry, new here, I used the print statements from the previous posters suggestions. The actual data being pushed into the HOA is a lot of code and is an AD query so it wouldn't compile.
What I end up with is a key of Bob and an array containing groups: domain users, testing, server team etc