RetrieveAllUsers returns UserEntry with no name info

141 views
Skip to first unread message

Akitoshi Abe

unread,
Aug 9, 2011, 11:07:03 AM8/9/11
to google-app...@googlegroups.com
Hello,

I faced a strange situation and I wonder if it is API issue or not...

RetrieveAllUsers of Provisioning API returns UserFeed, which includes UserEntry WITH NO NAME INFO.
Below is part of my Python code:
-----
user_feed = apps_service.RetrieveAllUsers()
    
for each_user in user_feed.entry:
  users.append({
                'family_name': each_user.name.family_name,     ----------> This is null for all entry
                'given_name': each_user.name.given_name,       -----------> This is null for all entry
                })
-----
But, RetrieveUser returns UserEntry with correct name info. Null name issue happens only on RetrieveAllUsers.

My application is installed via GoogleApps Marketplace to customer's GoogleApps domain. It runs on GoogleAppEngine and using gdata-python-client 2.0.14.
It happens on only one of my customer, for all other customers RetrieveAllUsers returns UserEntry with correct name info.
It seems that 'apps:name' tag of UserEntry not having familyName and givenName attributes when issue comes up.

Is this some kind of API issue or my setting failure of GoogleApps? Any idea to fix?

Thanks!

Akitoshi Abe

Gunjan Sharma

unread,
Aug 10, 2011, 1:57:57 AM8/10/11
to google-app...@googlegroups.com
Hi Akitosh,

I can't reproduce the issue on my test domain, it seems like it only affects that single customer.
To exclude any bugs in the Python client library, please try reproducing the issue using cURL. Here is a guide on how to get started with cURL:
Basically, after you retrieve an authentication token, you use it to send a GET request to:

For more details on the Provisioning API protocol, please check the documentation at http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_developers_protocol.html#Retrieve_Account_Example.

Add the --verbose parameter to your cURL request and if you manage to reproduce the issue, please share the output of the request with us.

If everything works well with cURL, then it is highly likely that the issue is in the Python client library. You are using version 2.0.14 which is a few months old and since then many bugfixes were added to it, so please go to http://code.google.com/p/gdata-python-client/source/checkout to checkout the latest version of the library from the repository and check weather the problem persists.

Also, you said your app is installed from the Google Apps Marketplace. Does the problem occur if you run the same code from the command line?

Thanks
Gunjan Sharma

Rohit Barhgujar

unread,
Aug 10, 2011, 4:55:09 AM8/10/11
to google-app...@googlegroups.com, rohitba...@gmail.com, admini...@benchmark.org.in
Hello All,


so there is seen  Google Apps - Server error 

Google Apps - Server error 


This service is not available

Google Calendar is not available for benchmark.org.in. Learn more about Google products you can use with [email address].

If you are the Google Apps administrator, please read these articles to learn more about controlling user access to Google Apps services and turning services on/off for certain users.

Did you use this product with a different Google Account? Sign out of your current Google Account and then sign in to the account you want.
©2011 Google - Google Home - Terms of Service - Privacy Policy - Help


Server error

Sorry, you've reached a login page for a domain that isn't using Google Apps. Please check the web address and try again. Learn more



Gunjan Sharma

unread,
Aug 10, 2011, 11:25:26 PM8/10/11
to google-app...@googlegroups.com, rohitba...@gmail.com, admini...@benchmark.org.in
Hello Rohit

Seems like your domain is not active. Please get in touch with Google Apps support, 
this forum if for API-related questions only. Here is the link for your reference http://www.google.com/support/a/

Thanks
Gunjan Sharma

Akitoshi Abe

unread,
Aug 11, 2011, 10:23:16 AM8/11/11
to google-app...@googlegroups.com
Hi Gunjan,

Thank you for introducing me about cURL. It looks very useful to find problem of web application, I will try using it to investigate.
My application get data from GoogleApps using 2-legged OAuth of GoogleApps Marketplace.
I made some hook in gdata-python-client to out UserFeed response, output is below(user name and domain is changed from original output):
-----------------------
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:apps='http://schemas.google.com/apps/2006' xmlns:gd='http://schemas.google.com/g/2005'><id>https://apps-apis.google.com/a/feeds/example.com/user/2.0</id><updated>1970-01-01T00:00:00.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/apps/2006#user'/><title type='text'>Users</title><link rel='next' type='application/atom+xml' href='https://apps-apis.google.com/a/feeds/example.com/user/2.0?startUsername=next.user&amp;xoauth_requestor_id=requ...@example.com'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://apps-apis.google.com/a/feeds/example.com/user/2.0?xoauth_requestor_id=requ...@example.com'/><link rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' href='https://apps-apis.google.com/a/feeds/example.com/user/2.0?xoauth_requestor_id=requ...@example.com'/><link rel='self' type='application/atom+xml' href='https://apps-apis.google.com/a/feeds/example.com/user/2.0?xoauth_requestor_id=requ...@example.com'/><openSearch:startIndex>1</openSearch:startIndex><entry><id>https://apps-apis.google.com/a/feeds/example.com/user/2.0/aaa</id><updated>1970-01-01T00:00:00.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/apps/2006#user'/><title type='text'>aaa</title><link rel='self' type='application/atom+xml' href='https://apps-apis.google.com/a/feeds/example.com/user/2.0/aaa?xoauth_requestor_id=requ...@example.com'/><link rel='edit' type='application/atom+xml' href='https://apps-apis.google.com/a/feeds/example.com/user/2.0/aaa?xoauth_requestor_id=requ...@example.com'/><apps:login userName='aaa' suspended='false' ipWhitelisted='false' admin='false' changePasswordAtNextLogin='false' agreedToTerms='true'/><apps:quota limit='25600'/><apps:name familyName='' givenName=''/><gd:feedLink rel='http://schemas.google.com/apps/2006#user.nicknames' href='https://apps-apis.google.com/a/feeds/example.com/nickname/2.0?username=aaa&amp;xoauth_requestor_id=requ...@example.com'/><gd:feedLink rel='http://schemas.google.com/apps/2006#user.emailLists' href='https://apps-apis.google.com/a/feeds/example.com/emailList/2.0?recipient=aaa%40example.com&amp;xoauth_requestor_id=requ...@example.com'/></entry>
.....
----------------------

In the response, name tag have familyName and givenName attributes, but values are empty.
This happens only for specified customer from 2 days ago, all other customers are fine.
It seems that the problem is not come from gdaga-python-client...

Thanks!

Akitoshi Abe

Ray

unread,
Aug 11, 2011, 5:57:09 PM8/11/11
to Google Apps Domain Information and Management APIs
I am having the same problem using the python api and this also
started 2 days ago. When I print out a userEntry from python, the
name tag is there but it has no attributes. Did anyone find a
resolution to this?

<?xml version='1.0' encoding='utf-8'?>
<ns0:entry xmlns:ns0="http://www.w3.org/2005/Atom">
<ns1:name xmlns:ns1="http://schemas.google.com/apps/2006" />
<ns0:category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/apps/2006#user" />
<ns0:id>
https://apps-apis.google.com/a/feeds/selu.edu/user/2.0/xxxxx</ns0:id>
<ns0:updated>1970-01-01T00:00:00.000Z</ns0:updated>
<ns1:quota limit="7168"
xmlns:ns1="http://schemas.google.com/apps/2006" />
<ns1:feedLink href="https://apps-apis.google.com/a/feeds/selu.edu/
nickname/2.0?username=xxxxx"
rel="http://schemas.google.com/apps/2006#user.nicknames"
xmlns:ns1="http://schemas.google.com/g/2005" />
<ns1:feedLink href="https://apps-apis.google.com/a/feeds/selu.edu/
emailList/2.0?recipient=xxxxx%40selu.edu"
rel="http://schemas.google.com/apps/2006#user.emailLists"
xmlns:ns1="http://schemas.google.com/g/2005" />
<ns0:title type="text">xxxxx</ns0:title>
<ns0:link href="https://apps-apis.google.com/a/feeds/selu.edu/user/
2.0/xxxxx"
rel="self" type="application/atom+xml" />
<ns0:link href="https://apps-apis.google.com/a/feeds/selu.edu/user/
2.0/xxxxx"
rel="edit" type="application/atom+xml" />
<ns1:login admin="false" agreedToTerms="true"
changePasswordAtNextLogin="false" ipWhitelisted="false"
suspended="false" userName="xxxxx"
xmlns:ns1="http://schemas.google.com/apps/2006" />
</ns0:entry>


thanks,
ray


On Aug 11, 9:23 am, Akitoshi Abe <akitoshi...@gmail.com> wrote:
> Hi Gunjan,
>
> Thank you for introducing me about cURL. It looks very useful to find
> problem of web application, I will try using it to investigate.
> My application get data from GoogleApps using 2-legged OAuth of GoogleApps
> Marketplace.
> I made some hook in gdata-python-client to out UserFeed response, output is
> below(user name and domain is changed from original output):
> -----------------------
> <?xml version='1.0' encoding='UTF-8'?><feed
> xmlns='http://www.w3.org/2005/Atom'
> xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'
> xmlns:apps='http://schemas.google.com/apps/2006'
> xmlns:gd='http://schemas.google.com/g/2005'><id>https://apps-apis.google.com/a/feeds/example.com/user/2.0</id><updated>1970-01-01T00:00:00.000Z</updated><category
> scheme='http://schemas.google.com/g/2005#kind'
> term='http://schemas.google.com/apps/2006#user'/><title
> type='text'>Users</title><link rel='next' type='application/atom+xml'
> href='https://apps-apis.google.com/a/feeds/example.com/user/2.0?startUsername=nex t.user&amp;xoauth_requestor_id=reques...@example.com'/><link
> href='https://apps-apis.google.com/a/feeds/example.com/user/2.0?xoauth_requestor_ id=reques...@example.com'/><link
> href='https://apps-apis.google.com/a/feeds/example.com/user/2.0?xoauth_requestor_ id=reques...@example.com'/><link
> rel='self' type='application/atom+xml'
> href='https://apps-apis.google.com/a/feeds/example.com/user/2.0?xoauth_requestor_ id=reques...@example.com'/><openSearch:startIndex>1</openSearch:startIndex><entry><id>https://apps-apis.google.com/a/feeds/example.com/user/2.0/aaa</id><updated>1970-01-01T00:00:00.000Z</updated><category
> scheme='http://schemas.google.com/g/2005#kind'
> term='http://schemas.google.com/apps/2006#user'/><title
> type='text'>aaa</title><link rel='self' type='application/atom+xml'
> href='https://apps-apis.google.com/a/feeds/example.com/user/2.0/aaa?xoauth_reques tor_id=reques...@example.com'/><link
> rel='edit' type='application/atom+xml'
> href='https://apps-apis.google.com/a/feeds/example.com/user/2.0/aaa?xoauth_reques tor_id=reques...@example.com'/><apps:login
> userName='aaa' suspended='false' ipWhitelisted='false' admin='false'
> changePasswordAtNextLogin='false' agreedToTerms='true'/><apps:quota
> limit='25600'/><apps:name familyName='' givenName=''/><gd:feedLink
> rel='http://schemas.google.com/apps/2006#user.nicknames'
> href='https://apps-apis.google.com/a/feeds/example.com/nickname/2.0?username=aaa& amp;xoauth_requestor_id=reques...@example.com'/><gd:feedLink
> rel='http://schemas.google.com/apps/2006#user.emailLists'
> href='https://apps-apis.google.com/a/feeds/example.com/emailList/2.0?recipient=aa a%40example.com&amp;xoauth_requestor_id=reques...@example.com'/></entry>

snacknuts

unread,
Aug 11, 2011, 6:29:39 PM8/11/11
to google-app...@googlegroups.com
We are seeing the same issues using cURL, the xml returned is missing the givenname and familyName:
...

<apps:name familyName='' givenName=''/>
...

Claudio Cherubino

unread,
Aug 11, 2011, 6:31:34 PM8/11/11
to google-app...@googlegroups.com
Please let us know the complete email address of one of the affected users so that we can perform a deeper investigation.
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/-/HlcDMcxqVGoJ.

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.

snacknuts

unread,
Aug 11, 2011, 7:28:16 PM8/11/11
to google-app...@googlegroups.com
using this:
curl --silent --header "Authorization: GoogleLogin auth=$AUTHID" "https://apps-apis.google.com/a/feeds/angelo.edu/user/2.0"
results in (among others:)
    <updated>1970-01-01T00:00:00.000Z</updated>
    <category scheme='http://schemas.google.com/g/2005#kind'
    <title type='text'>aanderson23</title>
    <link rel='self' type='application/atom+xml'
    <link rel='edit' type='application/atom+xml'
    <apps:login userName='aanderson23' suspended='false'
    ipWhitelisted='false' admin='false'
    changePasswordAtNextLogin='false' agreedToTerms='false' />
    <apps:quota limit='25600' />
    <apps:name familyName='' givenName='' />

using this:
curl --silent --header "Authorization: GoogleLogin auth=$AUTHID" "https://apps-apis.google.com/a/feeds/angelo.edu/user/2.0/aanderson23"

results in:
  <updated>1970-01-01T00:00:00.000Z</updated>
  <title type='text'>aanderson23</title>
  <link rel='self' type='application/atom+xml'
  <link rel='edit' type='application/atom+xml'
  <apps:login userName='aanderson23' suspended='false'
  ipWhitelisted='false' admin='false'
  changePasswordAtNextLogin='false' agreedToTerms='false' />
  <apps:quota limit='25600' />
  <apps:name familyName='Anderson' givenName='Andrea' />

so... I guess retrieving one user works.. but retrieving all does not.

Claudio Cherubino

unread,
Aug 11, 2011, 7:42:12 PM8/11/11
to google-app...@googlegroups.com
Thanks for the details, we filed an internal bug for the engineering team to investigate.
We'll update this thread as soon as we get some news.
Thanks

Claudio

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.

snacknuts

unread,
Aug 15, 2011, 12:33:05 PM8/15/11
to google-app...@googlegroups.com
Looks like it's working again today, I'm guessing the google-side API update  was fixed?

Claudio Cherubino

unread,
Aug 15, 2011, 12:36:56 PM8/15/11
to google-app...@googlegroups.com
Yes, I was notified it was fixed but I was waiting to test it myself before writing here.
Anyway, it looks like you were faster than me ;)
Thanks

Claudio

On Mon, Aug 15, 2011 at 9:33 AM, snacknuts <jher...@angelo.edu> wrote:
Looks like it's working again today, I'm guessing the google-side API update  was fixed?

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.

snacknuts

unread,
Oct 25, 2011, 12:26:23 PM10/25/11
to google-app...@googlegroups.com
Looks like this issue has returned again...

Claudio Cherubino

unread,
Oct 25, 2011, 6:10:44 PM10/25/11
to google-app...@googlegroups.com
The issue has also been reported in our issue tracker:


I reported it to the engineers and I'll post further communications in the issue tracker, so please star the issue to get all relevant updates directly in your mailbox.
Thanks

Claudio

snacknuts

unread,
Nov 1, 2011, 11:37:19 AM11/1/11
to google-app...@googlegroups.com
Looks like it's working again (sending the <apps:name familyName and givenName )

not sure when it reappeared...

Claudio Cherubino

unread,
Nov 1, 2011, 12:21:41 PM11/1/11
to google-app...@googlegroups.com
Hi,

The issue has been fixed and the new code pushed to production between yesterday and today.
Thanks for your patience

Claudio

On Tue, Nov 1, 2011 at 8:37 AM, snacknuts <jher...@angelo.edu> wrote:
Looks like it's working again (sending the <apps:name familyName and givenName )

not sure when it reappeared...

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
Reply all
Reply to author
Forward
0 new messages