Chris Hayes
Chris Hayes

Reputation: 4037

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()

Upvotes: 0

Views: 267

Answers (1)

Dmytro Sadovnychyi
Dmytro Sadovnychyi

Reputation: 6201

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

Will fetch all users.

Upvotes: 2

Related Questions