You need to sign in to do that
Don't have an account?
vshyam121
password problem
Hi,
currently I'm working on provisioning salesforce users using the Web Services API. I can create the User object just fine, but the email message with the temporary password is not being sent to the new user's email. So when I single sign on with the new user into Salesforce, it's expecting the user to type in the old password which didn't get emailed.
Also, is there any way to get around this temporary password emailing system that is set up now.
Thanks for any help,
Shyam
currently I'm working on provisioning salesforce users using the Web Services API. I can create the User object just fine, but the email message with the temporary password is not being sent to the new user's email. So when I single sign on with the new user into Salesforce, it's expecting the user to type in the old password which didn't get emailed.
Also, is there any way to get around this temporary password emailing system that is set up now.
Thanks for any help,
Shyam
I'm not sure what your last question is asking, do you want to send the email, or is there something different that you'd rather do.
Thanks for the tip about the email header by the way.
Shyam
But anyway, I can't even get the email from salesforce. Here is my code:
try {
EmailHeader emailHeader = new EmailHeader();
emailHeader.setTriggerAutoResponseEmail(true);
binding.setHeader("urn:partner.soap.sforce.com", "EmailHeader", emailHeader);
sr = binding.create(user);
} catch (UnexpectedErrorFault ex) {
System.out.println("An unexpected error has occurred." + ex.getMessage());
}
the user object itself is working because I can create users just fine.
Any blatant mistakes visible?
Thanks,
Shyam
setPassword() should work fine. And have you looked at the delegated auth feature? that would mitigate any password management in salesforce.com all together.
As for delegated authentication, I have to use SAML based SSO instead since it is more of a standard and therefore I can use similar code for other places. Seems to me that delegated authentication is unique to Salesforce. Also, my superiors emphasize SAML. So there you go.
Thanks for the help so far,
Shyam
Shyam