I am using the current version of Spring Data Rest and Spring Data JPA and have following entity:
public class User { @Id @GeneratedValue private
You can also do it using a RegexRequestMatcher in your Spring Security config like this:
.regexMatchers(HttpMethod.GET,"/user/.*projection=simple.*").hasRole("ROLE_ADMIN")