• michaelw_dc
  • NEWBIE
  • 15 Points
  • Member since 2020
  • Web Developer

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
This used to work at one point, and now it does not.  I've observed that the VisualForce page still lists accounts correctly, but when published to a "Site" homepage, it does not.  This suggests a permissions problem, but I don't see anything standing out as incorrect.

This entire process of producing the accounts seems to consist of: a user, a user profile, a visualForce page, a custom Apex class that sets the page size to 2000, and the site page itself.
  • For the custom Apex class, I've verified that the user profile is enabled for it in the security settings.
  • For the Visualforce page, it works perfectly, listing out all the accounts.
  • For the user profile, I've verified that the object settings includes Read permission on the Accounts object, and possesses the Apex Class Access to the custom Apex class.
  • For the site page, editing public access settings takes me to the same user profile that possesses Read permission on the Accounts object.
  • For the user itself, it possesses the guest license and uses the profile with the Read permission on the accounts object.
I've not done much work with Salesforce, so perhaps its something silly and obvious that I am missing.  So, does anyone know what I might be missing, here?  I've tried toggling things that look like they might be associated with reading accounts, such as system permissions to access the Salesforce API or to access the Apex REST API, with no luck.
This used to work at one point, and now it does not.  I've observed that the VisualForce page still lists accounts correctly, but when published to a "Site" homepage, it does not.  This suggests a permissions problem, but I don't see anything standing out as incorrect.

This entire process of producing the accounts seems to consist of: a user, a user profile, a visualForce page, a custom Apex class that sets the page size to 2000, and the site page itself.
  • For the custom Apex class, I've verified that the user profile is enabled for it in the security settings.
  • For the Visualforce page, it works perfectly, listing out all the accounts.
  • For the user profile, I've verified that the object settings includes Read permission on the Accounts object, and possesses the Apex Class Access to the custom Apex class.
  • For the site page, editing public access settings takes me to the same user profile that possesses Read permission on the Accounts object.
  • For the user itself, it possesses the guest license and uses the profile with the Read permission on the accounts object.
I've not done much work with Salesforce, so perhaps its something silly and obvious that I am missing.  So, does anyone know what I might be missing, here?  I've tried toggling things that look like they might be associated with reading accounts, such as system permissions to access the Salesforce API or to access the Apex REST API, with no luck.