Red Hat Bugzilla – Bug 470336
user.setDefaultSystemGroup only accepts groups that the user is subscribed to
Last modified: 2009-09-10 15:54:01 EDT
In the two api calls user.setDefaultSystemGroup(s) if you pass in a system group to be the default and include a group that the target user is not an admin of, you get an error saying "Unable to locate or access server group".
As soon as you set that user to be the admin of the group then the error goes away.
This behaviour is different from the WebUI which allows you to select groups to be the default for a user regardless of if that user is an admin of the group or not.
This is tested in the api automated unit tests.
Also the case with removeDefaultSystemGroup(s)
fixed in b3f2cb7..2f70890
Looking at commit:
I'm assuming the API calls are
user.addDefaultSystemGroup(s) and not "setDefaultSystemGroup(s)".
Verified against: Satellite-5.3.0-RHEL5-re20081223.1-i386-embedded-oracle.iso
*** Bug 465094 has been marked as a duplicate of this bug. ***
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.