Hi David, The UserSuspended error instead of a UserDeletedRecently error is strange, a Googler would need to speak to that. FYI, I test using the Provisioning API Group calls (vs. deprecated list calls) and I get the same UserSuspended error:
C:\google-apps-manager>\Python27\python.exe gam.py delete user [email protected] norename Deleting account for user8 send: '*DELETE https://apps-apis.google.com/a/feeds/example.org/user/2.0* */user8* HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: apps-apis.google.com\r\nCo ntent-Type: application/atom+xml\r\nAuthorization: OAuth realm="", oauth_nonce=" xxxx", oauth_timestamp="1321374343", oauth_consumer_key="xxxx.apps.g oogleusercontent.com", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_token="xxxx", oauth_signature=" xxxxx"\r\nUser-Agent: Google Apps Manager 2.0 / jay [email protected] (Jay Lee) / Python 2.7.2 final / Windows-7-6.1.7601-SP1 AMD64 / G Data-Python 2.0.14+20110902+custom_mods\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: GData-Version: 1.0 header: Date: Tue, 15 Nov 2011 16:26:00 GMT header: Expires: Tue, 15 Nov 2011 16:26:00 GMT header: Cache-Control: private, max-age=0 header: X-Content-Type-Options: nosniff header: X-Frame-Options: SAMEORIGIN header: X-XSS-Protection: 1; mode=block header: Content-Length: 0 header: Server: GSE header: Content-Type: text/html Deleted user user8 C:\google-apps-manager>\Python27\python.exe gam.py update group [email protected] add member [email protected] send: '*POST https://apps-apis.google.com/a/feeds/group/2.0/example.org/* *[email protected]/member* HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: apps-apis.google.com\r\nContent-Length: 217\r\nContent-Type: application/atom+xm l\r\nAuthorization: OAuth realm="", oauth_nonce="xxxxx", oauth_timestamp="xxxxxx", oauth_consumer_key="xxxxxx.apps.googleusercontent.com", oauth_si gnature_method="HMAC-SHA1", oauth_version="1.0", oauth_token="xxxx xxxx", oauth_signature="0qVhiDOyhr3TYpOXyncd9fvY2so%3D" \r\nUser-Agent: Google Apps Manager 2.0 / [email protected] (Jay Lee) / Python 2 .7.2 final / Windows-7-6.1.7601-SP1 AMD64 / GData-Python 2.0.14+20110902+custom_ mods\r\n\r\n' send: '<?xml version=\'1.0\' encoding=\'UTF-8\'?>\n<ns0:entry xmlns:ns0="http:// www.w3.org/2005/Atom" xmlns:ns1="http://schemas.google.com/apps/2006"><ns1:prope rty name="memberId" value="[email protected]" /></ns0:entry>' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Content-Type: text/xml header: Date: Tue, 15 Nov 2011 16:27:57 GMT header: Expires: Tue, 15 Nov 2011 16:27:57 GMT header: Cache-Control: private, max-age=0 header: X-Content-Type-Options: nosniff header: X-Frame-Options: SAMEORIGIN header: X-XSS-Protection: 1; mode=block header: Server: GSE header: Transfer-Encoding: chunked Traceback (most recent call last): File "gam.py", line 2962, in <module> doUpdateGroup() File "gam.py", line 1245, in doUpdateGroup result = groupObj.*AddMemberToGroup*(email, group) File "C:\google-apps-manager\gdata\apps\groups\service.py", line 219, in AddMe mberToGroup return self._PostProperties(uri, properties) File "C:\google-apps-manager\gdata\apps\service.py", line 532, in _PostPropert ies raise gdata.apps.service.AppsForYourDomainException(e.args[0]) gdata.apps.service.AppsForYourDomainException: {'status': 400, 'body': '<?xml ve rsion="1.0" encoding="UTF-8"?>\r\n<AppsForYourDomainErrors>\r\n <error errorCod e="1101" invalidInput="" reason="*UserSuspended*" />\r\n</AppsForYourDomainErrors> \r\n\r\n', 'reason': 'Bad Request'} -- 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/-/UeOr6w1UWiUJ. 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.
