Using the Profiles API to get/set the users Contact Sharing setting

19 views
Skip to first unread message

Marc Bradshaw

unread,
Mar 5, 2012, 7:30:50 PM3/5/12
to google-app...@googlegroups.com
I am writing some code which is intended to get and set a users contact sharing state (ie, if their address is automatically shared with other users of the domain) as detailed here in a blog post http://googleappsdeveloper.blogspot.com.au/2011/08/unshare-domain-users-contact.html and in the developer guide here http://code.google.com/googleapps/domain/profiles/developers_guide.html

However, the relevant entry is not being returned from the API, that is there is no <gcontact:status indexed="true"/> entry.

Here is, for example, the XML returned when looking up my test account (with some information changed for context)

<?xml version="1.0" ?>
  <id>
  </id>
  <updated>
    2012-03-06T00:23:35.100Z
  </updated>
  <app:edited xmlns:app="http://www.w3.org/2007/app">
    2012-03-06T00:23:35.100Z
  </app:edited>
  <title>
    User Name
  </title>
</entry>

Why is the entry for gcontact:status indexed not present?  We are using the Educational edition.

Thanks,

Claudio Cherubino

unread,
Mar 5, 2012, 8:15:50 PM3/5/12
to google-app...@googlegroups.com
Hi Marc,

Please post this question in the Contacts API forum, which is also used for the Shared Contacts and User Profiles API:


Thanks
Claudio

--
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/-/YLcgnO7wkMIJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply all
Reply to author
Forward
0 new messages