Skip to content

User Account Migration

a-a-hofmann edited this page Dec 4, 2019 · 2 revisions

User account migration can be used to migrate all user1 submissions to user2.

Note: this process requires the admin role for a course C, and both user1 and user2 need to be enrolled in course C

1. Get a list of participants: GET /courses/<courseId>/participants returns a list of (userId, emailAddress) objects

2. Send a request for account migration:

POST /api/admins/courses/<courseId>/participants/migrations HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOi[...]EllfQ
{
	"from": "<userId1>",
	"to": "<userId2>"
}

3. Deactivate user account. All submission of user1 should now have been migrated to user2. At this point, it is safe to remove user1 from the list of participants in the course configuration and deactivate the account on the identity provider.

Clone this wiki locally