Enhancing Support with JavaScript: Retrieve User Groups

Hey guys :slight_smile:

I awould greatly appreciate your expertise and guidance regarding retrieving the group of a user using JavaScript. My specific use case involves sending this information to the Crisp addon (with this feature), aiming to provide a more personalized and effective support experience for each user.

I would like to retrieve the group information of the logged-in user through JavaScript, so I can pass it to the Crisp addon. But I would like to accomplish this without hardcoding each individual group I have configured in the studio. This will help avoid the need for frequent code edits whenever changes are made to the groups.

This way, the support team can gain a better understanding of the userโ€™s context and provide targeted assistance accordingly. If any of you have experience or knowledge in this area, I would be grateful for your guidance.