Hello Rhett.

The Name entry in ContactEntry and ProfileEntry is immutable.
It cannot be updated using these APIs.
You have to use the Provisioning API for updating Name Entry.

thanks,
Shraddha Gupta
Developer Programs Engineer
Hyderabad, Google India.



On Mon, Dec 5, 2011 at 1:01 PM, Rhett <[email protected]> wrote:

> I have been trying to determine the correct way to set the Name Prefix,
> Middle Name, and Name Suffix values for accounts so that these values
> appear in the contact entry.  I tried setting these values from the Name()
> object returned from the ContactEntry and ProfileEntry objects, neither of
> these approaches worked.  When I posted to the Contacts API forum, someone
> from Google told me that those values are part of the provisioned account
> and should be set with the provisioning API.  However, when I get the
> Name() object from the UserEntry object, it is a different class than Name
> returned from ContactEntry and ProfileEntry.
>
> UserEntry.getName() returns an object of the class
> com.google.gdata.data.appsforyourdomain.Name, which does not support
> AdditionalName, NamePrefix, or NameSuffix.
>
> ProfileEntry.getName() and ContactEntry.getName() return an object of the
> class com.google.gdata.data.extensions.Name, which does support
> AdditionalName, NamePrefix, and NameSuffix but these values do not register
> with the contact entry and are not set when the ProfileEntry or
> ContactEntry object is updated.  I have tried adding this class as an
> extension point to UserEntry but that does not work either.
>
> My question is actually pretty simple.  How do I set the NamePrefix,
> AdditionaName, and NameSuffix for a user so that they appear in the
> contacts entry?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Apps Domain Information and Management APIs" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-apps-mgmt-apis/-/MzG2_7ED7g8J.
> 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-apps-mgmt-apis?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" 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-apps-mgmt-apis?hl=en.

Reply via email to