Throw exception from UserModel::initWithCredentials and UserModel::assertPrivilege