title: AppEngine Cloud Endpoints and custom Users service
body: <p>Is it possible to use a custom Users service (a service that implements UsersService interface) with Google AppEngine endpoints?</p>
  
  <p>Let's take the example from Google AppEngine website</p>
  
  <pre><code>@ApiMethod(name = "greetings.authed", path = "greeting/authed")
  public HelloGreeting authedGreeting(User user) {
      HelloGreeting response = new HelloGreeting("hello " + user.getEmail());
      return response;
  }
  </code></pre>
  
  <p>When a request is made to the application and this endpoint is hit it somehow contacts the Users service and gets the information about authenticated user (because the OAuth token is available in the request).</p>
  
  <p>I'd like to somehow use my own service which would implement <code>UsersService</code> interface and provide me with a user object.</p>