Caused by

Result object

The school membership update trigger returns information about a user’s membership in a school.

Example object

{ 
	"event": { 
		"type": "student.membership.created", 
		"sent_time": "2019-11-05T21:31:00.988297+00:00" 
	}, 
	"id": 57361, 
	"user": { 
		"id": 52047,
		"username": "john_doe", 
		"first_name": "John", 
		"last_name": "Doe", 
		"email": "john.doe@example.com", 
		"membership": { 
			"membership_type": "Student", 
			"is_school_admin": false, 
			"can_manage_school": false, 
			"can_create_course": false,
			"consent_dtime": "2019-11-05T21:31:00.762135+00:00" ,
			"consent_snapshot": "Email me feature updates, examples, and interesting news."
		}
	}, 
	"school": { 
		"id": 28421, 
		"name": "Online Academy" 
	}, 
	"meta": {}
}