How to give Portal account owner a role?

How to give Portal account owner a role?

Role is a standard field on the user object. Go to the owner of the account you’re using (probably your admin user) and give that user a role. You can do this on the user setup page. Role is a standard field on the user object. Go to the owner of the account you’re using (probably your admin user) and give that user a role.

Do you need a role to register a site?

If you are using sites, you must have hard coded an accountId to the file SitesRegistrationController. Owner of this Account should have a role. If you have done this in some other way, just keep in mind that every user that registers through SItes is associated with a Account. Owner of all such accounts must have a Role defined.

Do you have to have an account in Salesforce?

Every record in salesforce has an owner that points to a user record. In this case you need to look at the Account records and their owners. Make sure they all have a role assigned to them. If you are using sites, you must have hard coded an accountId to the file SitesRegistrationController.

What do I need to update my Portal account?

Fields such as First Name, Last Name and Company Name is prompted and the user can update those. As part of requirement I need to update the contact record associated with the “user” record as user updates his/her profile (above fields). Also If the CompanyName has changed I need to create a new Account and link the contact to the new Account.

How to create an admin portal Account ID?

As suggested, I got an existing account ID (I used my own account, which is an admin account) and pasted it into my SiteRegisterController, so it looks like this: public with sharing class SiteRegisterController { private static Id PORTAL_ACCOUNT_ID = ‘00590000000aB8l’; // ID of my admin account // snip }

Is the ID 00590000000ab8l An Account ID?

The problem is that the id 00590000000aB8l is a user id (starts with 005 ), not an account id (starts with 001 ). Try creating a new Account (on the Account tab, not in Setup), enabling portals on that Account, and then uses its 001… id instead.