Hopefully someone has gone though this and might have an idea how I might accomplish this
In our rule script we had some code like this below we are parsing groups from a 3rd party and pulling names and matching.
else if(groupsFromConnection[i] === "Admin'){
user.groups.push("Admin");
user.groups.push("Special.Admin");
}
else if(groupsFromConnection[i] === "Viewers"){
user.groups.push("Viewer");
}
Is there a way to update modify userGroups in actions?