+ Start a Discussion

Perl: How to verify a selfservice user?

In my script I am using my API account to log in. After that I need to verify a SelfService user. How can I do that?

Also, If there are two selfservice users with same email address and how can I identify the right one?

Please let me know if the question is not clear.

Thanks in advance!
Ron HessRon Hess
in perl, you would do something like this

$r = $sf->query(query=>"select Email, ContactId, Username, Active from SelfServiceUser where Email = '$daemail' ") ;
print Dumper($r->result);

This would tell you the if the user is active or not, and details about the self service user.

you could also use "username" instead of email the the query.

if two self service users have the same email address, you would have to tell them apart by the ContactID or Username, both of which should be unique, even if the email is not