my $remoteid = $self->api_call('mail_user_add',$self->option('client_id'),$params);
return $self->api_error_logout if $self->api_error;
my $error = $self->set_remoteid($svc_acct,$remoteid);
$error = "Remote system updated, but error setting remoteid ($remoteid): $error"
if $error;
$self->api_logout;
my $remoteid = $self->api_call('mail_user_add',$self->option('client_id'),$params);
return $self->api_error_logout if $self->api_error;
my $error = $self->set_remoteid($svc_acct,$remoteid);
$error = "Remote system updated, but error setting remoteid ($remoteid): $error"
if $error;
$self->api_logout;