Initially we also had support for SpEL Expression parameters in query derivation but we decided to leave it out for now, since we had some concerns whether having SpEL expressions in user code is a good idea.
Configure SpEL expression as a bean
@Bean
Expression currentUserEmailAdress(){
return new SpelExpressionParser().parseExpression("principal?.emailAddress");
}