I _WANT_ to duplicate a user (not prevent duplicates) for archiving

My app (Prograds) has graduate students as users. They’re in schools, departments, programs. When a student moves from, say, a Master’s program to a PhD within the same department, I need to wipe the Master’s milestones and requirements and replace them with the PhD milestones and requirements .

The most elegant solution I can think of is simply to duplicate the user, such that the same person has two user records, one ‘old’ (archived) one and their current one but with the program changed. So I want to duplicate a user record and I’ll use a fake email address, since no-one will log in as that user from that point forward.

Is there any easy way to duplicate a thing – in this case a user thing – like this? Or do I have to set each of the user fields on the old (archived) user record to the value from the new (current) user record?

thanks!

You could use “copy a list of things” and pass the user thing ::converted to list … as a list of 1

1 Like

Ah, right. I forgot about that. I’ll try it.

1 Like