Red Hat Bugzilla – Bug 465094
user.setDefaultServerGroup(s) throws error if target user isn't an admin of the group
Last modified: 2009-08-14 16:23:17 EDT
if you call user.addDefaultServerGroup and pass a user and a group, where the user isn't the admin of the group you get an error.
However, the UI allows this and there is not reason why the api shouldn't. The user doesn't have to be an admin of a group to have that group be a default group for him.
I ran a couple of tests using space05 and so far have not been able to reproduce the problem.
Running the API as Satellite Admin, I'm able add a default group to a user regardless of whether or not that user is an admin of the group.
>>> client.user.addDefaultSystemGroup(key,'bbuckingham', 'bradgroup')
>>> client.user.addDefaultSystemGroup(key,'bbuckingham', 'bradgroup2')
Can you provide more details on the scenario that you observed this error?
After discussion with Justin, we found that this BZ is actually a duplicate of bug 470336.
*** This bug has been marked as a duplicate of bug 470336 ***