I am using python to retrieve a userentries information. For some reason I
can obtain some parts but not others. I can obtain the entry.category but
not the entry.category.scheme
More importantly I want to be able to grab a userEntries agreedToTerms
attribute and return it.
userEntry = gc.service.RetrieveUser(username)
print userEntry.login
print userEntry.login.admin
print userEntry.login.suspended
print userEntry.login. agreedToTerms
<?xml version='1.0' encoding='UTF-8'?>
<ns0:login admin="false" agreedToTerms="true"
changePasswordAtNextLogin="false" ipWhitelisted="false" suspended="false"
userName="username" xmlns:ns0="http://schemas.google.com/apps/2006" />
false
false
Traceback (most recent call last):
File "example.fail", line 14, in ?
print userEntry.login. agreedToTerms
AttributeError: 'Login' object has no attribute 'agreedToTerms'
What am I doing wrong?
-DN
--
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/-/DO0CeRtPzEMJ.
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.