I have one admin user for each domain to manage each domain.
When using the '->RetrieveAllEmailLists()' using the second domain admin account to login I get the following list. It is the email list without the domains. Note I have the same email list in both domains, that is why 'committee' is in there twice.
@googlelist = (
bless( {
'EmailList' => 'committee'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' ),
bless( {
'EmailList' => 'committee'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' ),
bless( {
'EmailList' => 'everyone'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' ),
bless( {
'EmailList' => 'everyone'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' ),
bless( {
'EmailList' => 'leaders'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' ),
bless( {
'EmailList' => 'paypal'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' ),
bless( {
'EmailList' => 'plc'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' ),
bless( {
'EmailList' => 'scoutmasters'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' ),
bless( {
'EmailList' => 'webmaster'
}, 'VUser::Google::ProvisioningAPI::V2_0::EmailListEntry' )
);
Also, if I manual add an email list (testlist@SECONDARYDOMAIN.com) and try to add users I get the following. Note the error I get back from Google even thou I logon in to the secondary domain.
$google = bless( {
'refreshtoken' => 0,
'admin' => 'admin',
'requestcontent' => '<?xml version="1.0" encoding="UTF-8"?><atom:entry xmlns:atom="
http://www.w3.org/2005/Atom" xmlns:apps="
http://schemas.google.com/apps/2006" xmlns:gd="
http://schemas.google.com/g/2005"><atom:category scheme="
http://schemas.google.com/g/2005#kind" term="
http://schemas.google.com/apps/2006#emailList.recipient"/><gd:who xmlns="
http://schemas.google.com/g/2005" email="*"/></atom:entry>',
'stats' => {
'success' => 1,
'rtime' => 1370444320,
'ctime' => 1370444316,
'requests' => 3,
'logins' => 1
},
'authtime' => 1370444319,
'replycontent' => '<?xml version="1.0" encoding="UTF-8"?>
<AppsForYourDomainErrors>
<error errorCode="1301" invalidInput="testlist@PRIMARYDOMAIN.com" reason="EntityDoesNotExist" />
</AppsForYourDomainErrors>
',
'domain' => 'SECONDARYDOMAIN.com',
'password' => '************',
'debug' => 0,
'authtoken' => '<snip>',
'replyheaders' => 'Cache-Control: private, max-age=0
Connection: close
Date: Wed, 05 Jun 2013 14:58:40 GMT
Server: GSE
Content-Type: text/xml
Expires: Wed, 05 Jun 2013 14:58:40 GMT
Client-Date: Wed, 05 Jun 2013 14:58:40 GMT
Client-Peer: 74.125.26.103:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/O=Google Inc/CN=Google Internet Authority
Client-SSL-Cert-Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com
Client-SSL-Cipher: ECDHE-RSA-RC4-SHA
Client-SSL-Socket-Class: IO::Socket::SSL
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
',
'result' => {
'reason' => 'Google API failure: 1301 - EntityDoesNotExist',
'error' => [
{
'errorCode' => '1301',
'reason' => 'EntityDoesNotExist',
'invalidInput' => 'testlist@PRIMARYDOMAIN.com'
}
]
}
}, 'VUser::Google::ProvisioningAPI::V2_0' );
_____
Arthur Donchey
"Only 2 defining forces have ever offered to die for you....Jesus Christ and the American Soldier. One died for your soul, the other for your freedom."
"If I can't say Merry Christmas, then I expect you at work on the 25th of Dec."
"You don't know fear until you are on the International Space Station and the power goes out." -Dr. David A. Wolf
"I am Dilbert; I trying to be Dogbert, but I am slowly becoming Wally"
Show quoted text-----Original Message-----
From: Randall Smith via RT [mailto:bug-VUser-Google-ProvisioningAPI@rt.cpan.org]
Sent: Saturday, June 01, 2013 3:18 PM
To: rratt@comcast.net
Subject: Re: [rt.cpan.org #85776] VUser-Google-ProvisioningAPI
<URL:
https://rt.cpan.org/Ticket/Display.html?id=85776 >
You're right that I haven't worked on this module for a while. I haven't tried using it with different domains.
Try using the secondary domain as the domain when you create the apps object. The domain is passed as part of the API call. You may need to create an API user in the secondary domain.
On Fri, May 31, 2013 at 1:17 PM, Arthur Donchey via RT < bug-VUser-Google-ProvisioningAPI@rt.cpan.org> wrote:
> Fri May 31 15:17:22 2013: Request 85776 was acted upon.
> Transaction: Ticket created by rratt@comcast.net
> Queue: VUser-Google-ProvisioningAPI
> Subject: VUser-Google-ProvisioningAPI
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: rratt@comcast.net
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=85776 >
>
>
>
> It seems there has not been any development for this module for some time.
>
> BUT, when adding members to a group that is NOT in the primary domain,
> they get added to the primary domain group.
>
> I have 2 domains with different logins, but I am not able to add to
> the secondary domain no matter what I try.
>
> Can the domain be part of the add functions or can it put the domain
> from what was used to logon???
>
>
> _____
>
> Arthur Donchey
>
> "Only 2 defining forces have ever offered to die for you....Jesus
> Christ and the American Soldier. One died for your soul, the other for
> your freedom."
>
> "If I can't say Merry Christmas, then I expect you at work on the 25th
> of Dec."
>
> "You don't know fear until you are on the International Space Station
> and the power goes out." -Dr. David A. Wolf
>
> "I am Dilbert; I trying to be Dogbert, but I am slowly becoming Wally"
>
>
>
--
Randy Smith
http://www.vuser.org/
http://perlstalker.blogspot.com/