Aggregate entitlement information from different endpoint and populate on accounts - Web Services Connector

I am trying to do that same approach but facing a roadblock with figuring out the JSON query to fetch user’s groups. Can you see if you can help?
Here’s the post where I’ve detailed it out : JSON Query Path to fetch user groups in Web Service After Operation Rule