Avatar

Correct answer by
Level 4

I suppose you could try passing the array as a stringified object, such as:

   return { userGroups: JSON.stringify(userGroups) };

 

And then parse it as an array in the profile script:

var userGroups = JSON.parse(mbox.param('userGroups'));

 

View solution in original post