Which API to get Google Apps Directory Custom Fields?

223 views
Skip to first unread message

Ferris Argyle

unread,
Jun 3, 2012, 3:40:43 PM6/3/12
to google-app...@googlegroups.com
The Provisioning and User Profiles APIs don't appear to return information such as phone # and custom fields based on the docs and my testing;  The Contacts API provides this information for external contacts only as far as I can see.


What is the best way to programmatically access this information?

Thanks

Claudio Cherubino

unread,
Jun 3, 2012, 3:50:45 PM6/3/12
to google-app...@googlegroups.com
Hi Ferris,

The User Profiles API returns the same type of information as the Contacts API but for domain users.

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/-/a4SYOXxXG54J.
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.

Message has been deleted

Ferris Argyle

unread,
Jun 3, 2012, 5:12:25 PM6/3/12
to google-app...@googlegroups.com
Claudio,

Thanks for response.

I'm not seeing the phone numbers or the custom field I added in the result (see below).  What am I missing?
==========================

<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' xmlns:gContact='http://schemas.google.com/contact/2008' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='&quot;WBMAQRlfRSt7I2A5&quot;'>
<updated>2012-06-03T17:56:43.032Z</updated>
<app:edited xmlns:app='http://www.w3.org/2007/app'>2012-06-03T17:56:43.032Z</app:edited>
<title>Ferris Argyle</title>
<link rel='self' type='application/atom+xml' href='https://www.google.com/m8/feeds/profiles/domain/.../full/test982'/>
<link rel='edit' type='application/atom+xml' href='https://www.google.com/m8/feeds/profiles/domain/.../full/test982'/>
<gd:name>
<gd:fullName>Ferris Argyle</gd:fullName>
<gd:givenName>Ferris</gd:givenName>
<gd:familyName>Argyle</gd:familyName>
</gd:name>
<gContact:status indexed='true'/>
<gd:email rel='http://schemas.google.com/g/2005#other' address='test982@...' primary='true'/>
</entry>

On Sunday, June 3, 2012 12:50:45 PM UTC-7, Claudio Cherubino wrote:
Hi Ferris,

The User Profiles API returns the same type of information as the Contacts API but for domain users.

Claudio

On Sun, Jun 3, 2012 at 12:40 PM, Ferris Argyle <far...@google.com> wrote:
The Provisioning and User Profiles APIs don't appear to return information such as phone # and custom fields based on the docs and my testing;  The Contacts API provides this information for external contacts only as far as I can see.


What is the best way to programmatically access this information?

Thanks

--
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/-/a4SYOXxXG54J.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

Alain Vongsouvanh

unread,
Jun 4, 2012, 11:24:21 AM6/4/12
to google-app...@googlegroups.com
Helo Ferris,

The Google User Profiles API will only return data set by an administrator of the domain using the same API. Some information are read-only and pre-set by our servers such as the user's Name (fullname, givenname, etc.) and primary e-mail address (set to the user's user...@domain.com).
To retrieve information such as the phone number, an administrator first need to set them.

Best,
Alain
Reply all
Reply to author
Forward
0 new messages