If you have a property type User, I am pretty sure the property value is just the email address.
It's actually better to store the userId you get via user.getUserId() since this is unique and does not change: http://code.google.com/appengine/docs/java/javadoc/ The email address is used because at the time we released the API, that's all we had, and now we can't make the change since we would break backwards compatibility. Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Mon, Mar 21, 2011 at 12:29 PM, Ido Ran <[email protected]> wrote: > Hi, I'm new to GAE so please be kind. > I have an entity with persisted field of type User. > I would like to have a registration page in which authenticated user can > register, on that page I can get the User instance without problem from > UserService. > > I also like to have an admin page from which I can manually register other > users, the current user on those pages will be the admin: > > Is it possible to get a User instance based on email address? > > Thank you, > Ido > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
