This was caused by us registering the User as a type, which conflicted with the model role also named User.
BUG: 430204