Hello,

I'm having issues with the fetching the Groups Feed in the provisioning API. 
 I have a domain with several secondary domains, and regardless of the 
arguments, the API will return ALL groups in the organization from all 
domains.  It is currently not possible to limit the feed to *specific*secondary 
domain.

One of our larger clients has well over 70+ domains (with a festival of 
DistroLists each), and the round trip time involved in fetching (and then 
filtering down to a specific domain) is pretty exhausting.

I've created and attached a simple python script detailing my issue.  I've 
removed my credentials from the file, but you'll see a few customizable 
variables at the top.  *Note -- In my Python example, Onixdev3.com is a 
parent domain, and test.richieforeman.com is a secondary domain.*

Any insight anyone here (or Google) may have is appreciated.

*
*

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
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.

#!/usr/bin/python
__author__ = '[email protected] (Richie Foreman)'

import gdata.apps.groups.service

PARENT_DOMAIN_ADMIN = "[email protected]"
PARENT_DOMAIN_PASS = "REDACTED"
PARENT_DOMAIN = "onixdev3.com"
SECONDARY_DOMAIN_ADMIN = "[email protected]"
SECONDARY_DOMAIN_PASS = "REDACTED"
SECONDARY_DOMAIN = "test.richieforeman.com"

def printGroups(conn):
    for g in conn.RetrieveAllGroups(): print g["groupId"]
    print "-"*30
    
def main():

    #connect to the parent domain
    conn = gdata.apps.groups.service.GroupsService(PARENT_DOMAIN_ADMIN,PARENT_DOMAIN_PASS,PARENT_DOMAIN)
    conn.ProgrammaticLogin()
    #expected: all groups in primary domain
    #actual: all groups in organization
    printGroups(conn)
    
    conn = gdata.apps.groups.service.GroupsService(SECONDARY_DOMAIN_ADMIN,SECONDARY_DOMAIN_PASS,SECONDARY_DOMAIN)
    conn.ProgrammaticLogin()
    #expected: All groups in secondary domain
    #actual: all groups in organization
    printGroups(conn)
    
    conn = gdata.apps.groups.service.GroupsService(PARENT_DOMAIN_ADMIN,PARENT_DOMAIN_PASS,SECONDARY_DOMAIN)
    conn.ProgrammaticLogin()
    #expected: ????
    #actual: all groups in organization
    printGroups(conn)
    
if __name__ == '__main__':
    main()

Reply via email to