+ Start a Discussion
hikiran rajuhikiran raju 

Gust user authentication for my site

Hi everyone,
I want to setup the Customer Portal user authentication using Force.com sites.  I have followed the instruction as below link
https://developer.salesforce.com/page/Authenticating_Users_on_Force.com_Sites
but  i'm unable to login, getting error as below.
User-added image

Can anyone help me over here.

Thanks in advance,
Regards,
raju.
Chris  ByromChris Byrom
The problem is the account you are creating the user for has an owner without a role. If you look at the account, check the owner, and make sure they have a role selected in their user record.
hikiran rajuhikiran raju
HI Byrom,
Thanks for the replay.
Can you please help me where for which owner i have to create a role.


Thanks in advance,
Regards,
raju.
Chris  ByromChris Byrom
Whenever you create a portal user two things happen. First a contact is created, and then the user is created. The contact has to belong to an account.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_sites.htm

The first example here shows how to create a portal user. Notice that there is a variable named PORTAL_ACCOUNT_ID. You can set this variable to the ID of a specific account. If you do this every user you create will have a contact under this account. This account has to have an owner with a role, which can be any user in your internal org.
Bhargav krishna 1Bhargav krishna 1
Thanks Byrom.
Chris  ByromChris Byrom
If you want to authenticate them, you have to create user records for them. This guide is pretty good for the whole process.

http://​https://developer.salesforce.com/page/Authenticating_Users_on_Force.com_Sites  (http://​https://developer.salesforce.com/page/Authenticating_Users_on_Force.com_Sites )