s6465456 / google-apps-shell

Automatically exported from code.google.com/p/google-apps-shell
0 stars 0 forks source link

Issuing update_user to change user's name results in error #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Fro the GUI, execute "gas update_user user_name=<user> 
first_name=<firstname> last_name=<lastname>"

What is the expected output? What do you see instead?
I expect my existing user to be renamed. In stead I get an error 
"AttributeError: 'AppsForYourDomainException' object has no attribute 
'reason'". Operation read_user ("gas read_user user_name=<user>") confirms the 
details have NOT been updated.

What version of the product are you using? On what operating system?
1.1.6 on Mac OS X 10.6.6

Please provide any additional information below.
From gas_details_log.txt:
Exception in Tkinter callback
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 1410, in __call__
  File "/Users/redacted/Downloads/gasi/mac_app/gasi.app/Contents/Resources/gasi.py", line 429, in RunExecute
  File "/Users/redacted/Downloads/gasi/mac_app/gasi.app/Contents/Resources/gasi.py", line 450, in RunCommands
  File "gas.pyc", line 916, in execute
  File "gas.pyc", line 310, in update_user
AttributeError: 'AppsForYourDomainException' object has no attribute 'reason'

Original issue reported on code.google.com by melle.de...@gmail.com on 20 Feb 2011 at 10:02

GoogleCodeExporter commented 9 years ago
Hi Melle,

If you're trying to rename a user, I would suggest using the rename_user method 
in GAS..

gas rename_user user_name="CURRENTUSERNAME" new_user_name="NEWUSERNAME"

Thanks,
Richie

Original comment by ric...@onixnet.com on 21 Feb 2011 at 10:48

GoogleCodeExporter commented 9 years ago
Richie,

Thanks for the comment. However, it's not the username I'm trying to change, 
it's the user's name (slight, but important difference).

Thanks,
Melle

Original comment by melle.de...@gmail.com on 21 Feb 2011 at 10:53

GoogleCodeExporter commented 9 years ago
Melle,

Okay.  That makes sense.  I tried the command you gave on my domain...

python gas.py update_user user_name=bart@onixdev3.com first_name=Joe 
last_name=Smith

It ran successfully, I would triple check your arguments.

Original comment by ric...@onixnet.com on 21 Feb 2011 at 11:32

GoogleCodeExporter commented 9 years ago
Rich,

The arguments are triple checked. Do note that my issue was logged for the GUI, 
not the CLI.
In the GUI, the following command leads to the error specified above:
   gas update_user user_name=melle first_name=John last_name=Doe
(user_name with or without domain gets the same result)

- Melle

Original comment by melle.de...@gmail.com on 22 Feb 2011 at 2:36