3 messages in com.googlegroups.opensocial-apiRe: [OpenSocial] Unique Person ID or ...
FromSent OnAttachments
Arne Roomann-Kurrik29 Apr 2008 10:57 
Arne Roomann-Kurrik29 Apr 2008 14:10 
Arne Roomann-Kurrik01 May 2008 12:48 
Subject:Re: [OpenSocial] Unique Person ID or Environment-dependent?
From:Arne Roomann-Kurrik (api.@google.com)
Date:04/29/2008 10:57:49 AM
List:com.googlegroups.opensocial-api

No, the Person ID numbers are only unique within each container. From http://code.google.com/apis/opensocial/docs/0.7/spec.html:

"One of the pieces of data that is always returned with a Person object is the user's ID. The user ID must be alphanumeric (A-Za-z0-9) and must uniquely identify the user in a container. This standardization is intended to allow for prefixing IDs with a domain name and separator to create globally unique IDs (e.g. "orkut.com:34KJDCSKJN2HHF0DW20394"). Note that there will likely be a size limit placed on user IDs to help manage storing IDs in a database."

Hope this helps, ~Arne

On Tue, Apr 29, 2008 at 10:49 AM, Sav <sava@gmail.com> wrote:

Are the Person IDs unique or are they only unique within the Environment domain?

opensocial.Person.getId() Gets an ID that can be permanently associated with this person.

opensocial.Environment.getDomain() Returns the current domain — for example, "orkut.com" or "myspace.com".