this.scope = scope;
this.userData = user.getUserData();
this.project = project;
this.projectRoles = projectRoles;
this.domain = domain;
this.keys = new AuthenticatedUserKeys(user);
if ((projectRoles == null) != (project == null)) {
throw new IllegalStateException();
}
}