Search code examples
google-app-enginepython-2.7webapp2

webapp2 user store, how do you query it


I'm using the webapp2 user store and I need to query User accounts. Where is that store located?

webapp2_extras.auth

something like

myusers = Users.query().filter(Users.somefield == somevalue).fetch()

Solution

  • from webapp2_extras.appengine.auth.models import User
    myusers = User.query().fetch()
    

    Will fetch all users.