26

The answer we received from Salesforce Tech support is that before the Winter 17 release, if you turned on debugging for a Site Guest User, you might receive an avalanche of debug logs if many different people were accessing your Force.com site at the same time. After the Winter 17 release, you now also need to set a server cookie in the browser to enable ...


8

The Guest "User license" is designed for public users who access your Site.com or Force.com sites. If Communities is enabled, these users will also have access to public pages in your communities. Site visitors have access to any information made available in an active public site. For each Guest "User license", you can develop one site for your organization....


5

This has to do with the test class quering users and assigning the ownership of records to the user queried. In your case the system is returing a community user. Change the query to return a particular user profile or insert a new user and use it to assign the record ownership.


4

I have done something similar to make a call to the Salesforce Rest API from lightning (well technically Apex). The session that lightning produces is an isolated session that can't be used anywhere else. It is specific to lightning only. In my use case, I needed to get some information about a list view that wasn't exposed in describe calls or querying the ...


4

Set up records that need sharing in @testSetup. The share records will be visible for all unit tests after @testSetup completes. By using @testSetup, things that occur "after the transaction", such as record sharing, are created. Tests that use those records will then have access to those records. Confirmation @isTest class q293720 { @testSetup ...


3

Click Public Access Settings button on the Site record in Setup. That will give you the Profile. To get to the User, click Assigned Users button in the Profile.


3

We had the same issue today, it was working fine before. The issue got resolved : Added the 'Search Pages' under the Site Standard Pages section in Site Detail Page, and it worked. Now there are 'Look Up Page' and 'Search Pages' under Site Standard section. Salesforce Support tech helped us to resolve this.


3

Partner support have replied to me and provided a working solution! Follow this tutorial https://developer.salesforce.com/blogs/developer-relations/2017/05/build-lightning-file-uploader-component.html but change the file upload apex class to 'without sharing'. Then embed the component within a flow following from the record creation passing through the new ...


3

As i understand your requirement you need to add this page to Guest User profile and assign this page in site. Then you can access this page without Login. Note: Make sure you also give access to all object to guest user profile which you are using in this page otherwise it will give you exception.


3

Do the have access to the account record? If so Setup -> Develop -> Sites Click site name Public access settings Provide permission to the associated profile (Shipping Address is the field name) If they do not have access to the account Create a variable in the controller to hold the shipping street value Use that variable to update the records field via ...


3

Go to Build -> Develop -> Sites, click on your Site/Community name and click on Public Access Settings button. It would open up the Profile for guest user. And in this page if you click View users, it shows Guest User. You can configure your custom self register page in Guest user profile, by adding it to Enabled Visualforce Page Access related list. ...


3

Yes, your guest user can create, update, and delete records if they have the appropriate profile permissions. To view the profile permissions for the Site.com Guest User, go to Setup > Develop > Sites > Site Label > Public Access Settings > Object Settings, and adjust the objects and fields you want to enable access to. Note that you still need to write your ...


3

The Lightning Framework has a localization service that you can use in your JS to format date/time values which should be helpful to you with your issue. // get currrent date/time and localize based on user's browser settings var dateFormat = $A.get("$Locale.dateFormat"); var dateString = $A.localizationService.formatDateTime(new Date(), dateFormat); // ...


3

There are two issues at play here: record sharing or "ownership" (controlled by "sharing settings" and org-wide defaults), and CRUD permissions. They are different. It sounds like you set up record sharing correctly, but failed to grant CRUD access to the detail object. In the permission set, navigate to the Object Settings for the detail object and make ...


3

From the SFDC Master Subscription Agreement 4.2 Usage Limits. Services and Content are subject to usage limits, including, for example, the quantities specified in Order Forms. Unless otherwise specified, (a) a quantity in an Order Form refers to Users, and the Service or Content may not be accessed by more than that number of Users, (b) a User’s password ...


3

There is a critical update called "Restrict Access to @AuraEnabled Apex Methods for Guest and Portal Users Based on User Profile".If you have this critical update enabled in your org then the guest users will not be able to access the @AuraEnabled apex classes unless you give the access on profile level. Please refer the release notes to see the ...


2

The public API isn't available for the guest user. It's explicitly blocked.


2

Site Guest user can only have CREATE and READ access to Account object. So, even if you assign FLS to Shipping Address field as Read or Edit, result will show false.


2

Per the docs your options for sender are limited to: CurrentUser—Email address of the user running the flow. (Default). (this should be the email address of the site guest user, though I'm not sure if that can be customized or not) DefaultWorkflowUser—Email address of the default workflow user. OrgWideEmailAddress—The organization-wide email address that ...


2

Do communities evaluate the Record requested when determining if a page should be accessible? Yes they evaluate access based on the user/guest user. check documentation here on how they check page/record access.Below is how the hierarchy of access works. We have decided to set the community global default to private, and then make the pages we want ...


2

I don't think you can do it due to the external sharing restrictions on the object for the site guest user. Even if you manage to find some workaround using without sharing in apex etc., be mindful of the new security updates coming up for the guest user documented here. That means that as of March 2020 the user will be even more locked down and limited to ...


2

Quoting a section from this help topic: https://help.salesforce.com/articleView?id=security_sharing_rule_types.htm&type=5 You can’t use Apex to create a criteria-based sharing rule. And you can’t test criteria-based sharing using Apex. I'm assuming the new Guest User Sharing rules fall under this bracket and therefore can't be used in Unit Testing. ...


2

@Koustubh, I ran into this same issue today. I was deploying a single controller class for a lightning component that had nothing to do with communities and received the same error. I also already had default owners set for each community and had the community setting enabled to enforce the default owner for records created by guest users. I "solved&...


1

I'm glad to announce that this issue is now solved in Spring '20 patch 7.0. Please check it out here: https://success.salesforce.com/issues_view?id=a1p3A000001YnzNQAS


1

Add in showHeader="false" to your apex:page tag. <apex:page showHeader="false">


1

I found that if your Community is open to the public or if you have any Community public pages that a Community setting called "Let guest users view asset files on public and login pages" gets set automatically. This allows guest users to see any asset files that are on public/login pages & files that are inserted into rich text fields. This is a ...


1

Below is the ScreenShot .Click on Edit Members.From there you can deselect Public groups,Standard or individual users.


1

If the document is marked as Externally Available checkbox, then if the image is sent in email template to the external user then that can be displayed without login into Salesforce. Refer Display and Edit Document Properties Better, upload the pdf as Files and get the link from Share via link and use that in knowledge article, so anyone from outside ...


1

You would need to first set OWD to private, as you can't introduce restrictive sharing, only permissive sharing. Then, create a public group for your guest user, and create a sharing rule to share the accounts you want. Afterwards, you may need to create additional rules for authorized users, etc.


1

You have no access to UserInfo.xx etc to figure out who the user is, so routes need to be generic, if you need to do user based routing best to bounce the user off a Visualforce page which does have access and can redirect it to a user/profile specific page. More info here: https://limitexception.com/url-rewriting-on-force-com-sites-and-visualforce-...


Only top voted, non community-wiki answers of a minimum length are eligible