Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6647979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:36:06+00:00 2026-05-26T00:36:06+00:00

In GAE , can you look up a User with the User object’s user_id

  • 0

In GAE, can you look up a User with the User object’s user_id?

In other words, is there something equivalent to:

from google.appengine.api.users import User

user = User.get_by_id(user_id)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:36:07+00:00Added an answer on May 26, 2026 at 12:36 am

    This seems to be the only post on the internet regarding this and since I was looking for a solution, I thought I’d post what I found here.

    What amir75 said about using the UserProperty is fine for storing the User object itself returned by the google.appengine.users module.

    But if you need to lookup a User by the user_id field instead of the default email field, usually something like user = User(email = 'validmail@gmailorgapps.com')

    You can use this to query by user_id. user = User(_user_id = 'validuserid') The valid user_id is something that you got earlier from calling user.user_id()

    I’m not sure what amir75 is referring to about having access to all google accounts since the User object returned will only have the email address and nickname, and that too only if the user authorizes the application to access that information.

    My use case for this is I want people to sign up on the site, but they need an administrator to confirm them for using the site. The form used by the administrator for confirming the users can use email id as the field to identify the checkbox for confirming the user, but given that it might change, the user_id seems to be a safer field to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On GAE, a non-gmail user can create a Google Account using their non-gmail email
Can you refer me to a good starting place for learning GAE from what
I want to create search interface to search data from GAE datastore? Can i
look this simple django on gae : http://code.google.com/p/google-app-engine-samples/source/browse/trunk/django_example and this is my code: DIRNAME
How can I create a backend? The GAE teaches how to configure, but there
How can I drop tables most easily from GAE datastore?
My GAE application receives several files in the upload (can be from 0 to
Using the GAE-helper ReferencePropertyField to show possible groups that a user can be in.
I have a GAE app that works just fine from my browser, but can't
I wrote a program to send mails from GAE. It can be run in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.