Is Google account user_id () unique at all times? (i.e. never reused)
Is it user_id()
unique at all times?
That is, even if a Google Account
is deleted, user_id()
that deleted account will never appear in another user_id
, right?
We clarify our understanding of this statement from http://code.google.com/appengine/docs/python/users/userclass.html#User_user_id
user_id ()
If an email address is associated with
Google Account
,user_id
returns a unique persistent user identifier, a string. This identifier is always the same for the user regardless of whether the user changes her address
.
source to share
Yes it is. This is a string of numbers, immutable for your email changes, etc. Other properties such as email, alias and other properties are editable.
EDIT
This is unique!
From https://developers.google.com/appengine/docs/python/users/userobjects
A custom object for a valid user can provide a unique identifier value for the user to remain unchanged even if the user changes their email address. The user_id () method returns this identifier, the str value.
The custom object has the same shape no matter what method your application authenticates. If you switch authentication settings from Google Accounts to OpenID, existing user objects in the datastore are still valid.
Also make sure the UserProperty is modified while discussed .
source to share