26 votes
Accepted

Debug logs not working for Site Guest Users (Force.com sites) after the Winter 17 release

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 ...
user avatar
  • 631
5 votes
Accepted

'Guest users cannot be record owners' error during deployment of test class to production

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 ...
user avatar
  • 131
4 votes

Named Credentials in Lightning Component - Streaming API

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 ...
user avatar
4 votes
Accepted

Force.com Sites - Lookup Access Error for Guest Site User

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 '...
user avatar
4 votes

Can I force a unit test to wait for a Sharing Rule to be created?

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 ...
user avatar
  • 433k
3 votes
Accepted

Are guest accounts within Salesforce's Use Policies, and if so, how would you create a guest account?

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 ...
user avatar
  • 62.2k
3 votes
Accepted

Winter 20 breaks communities guest file upload

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....
user avatar
  • 382
3 votes
Accepted

How to view name and profile of site guest user

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.
user avatar
3 votes
Accepted

How to give update permission to Guest user for ShippingStreet field of Account object?

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 ...
user avatar
  • 53.1k
3 votes
Accepted

Where is the guest user for communities

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, ...
user avatar
  • 17.7k
3 votes

Site Guest User Record Creation

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 ...
user avatar
  • 433k
3 votes
Accepted

Remove timezone conversion from the value of ui:inputDateTime

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 ...
user avatar
  • 40.4k
3 votes
Accepted

Access Denied on Master Detail record

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 ...
user avatar
3 votes
Accepted

Visualforce page: access from a guest

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 ...
user avatar
3 votes

Can I force a unit test to wait for a Sharing Rule to be created?

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 ...
user avatar
3 votes
Accepted

Guest User cannot access @AuraEnabled Apex Controller

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 ...
user avatar
3 votes

Why is this profile missing in the options of an org-wide email address and also the profile list in setup?

Guest User profiles are limited in nature. They are unauthenticated Community users, and as such, have restricted permissions compared to a normal, logged in user, including what kind of data/objects ...
user avatar
  • 433k
3 votes
Accepted

Delete orphan Guest User Profile

Per Support, there is no solution for this - Guest User Profiles, even ones disconnected from any Site can't be deleted There is a Known Issue that was fixed in Winter 2020 that could have explained ...
user avatar
  • 62.2k
2 votes

How to send VisualFlow email using dynamic sender address from sites visualpage?

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 ...
user avatar
  • 4,215
2 votes

How to give update permission to Guest user for ShippingStreet field of Account object?

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.
user avatar
2 votes

How do guest communities allow access to detail pages?

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/...
user avatar
  • 7,543
2 votes

Adding Survey to Community

I tried following the steps mentioned here- https://techiesexpress.blogspot.com/2020/12/how-to-embed-survey-component-in.html and I was able to make it work. Check if that helps! Pre-requisites Go to ...
user avatar
2 votes

Is it possible to delete files as a guest user in a community?

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 ...
user avatar
2 votes
Accepted

Cross-reference Permission label to permissionsXXX API Name

I found them using the Salesforce Inspector Chrome Add-on on a profile in my org. I click on show all data (tooling api) and see the below which matches up well with what you already got: ...
user avatar
2 votes

Cross-reference Permission label to permissionsXXX API Name

Thanks @KrisGoncalves Now that I see this, an alternative answer is to use Workbench and do a describe on the profile sobject (albeit, less convenient than seeing it all laid out per the Salesforce ...
user avatar
  • 62.2k
2 votes
Accepted

The flow does not work as expected when run as site guest user in community

There's a specific profile for Guest Users. If you give that profile access to the objects you want to expose, the Flow will work as expected. Main docs are here. A lot of things changed in Winter '...
user avatar
2 votes

Guest users are unable to upload a file in a community

Do you have the "Allow site guest users to upload files" checkbox checked? If not, you can go to Quick Find > General Settings > Allow site guest users to upload files (check it). You ...
user avatar
2 votes

'Guest users cannot be record owners' error during deployment of test class to production

@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 ...
user avatar
  • 295
2 votes

Reduce Object Permissions for Guest Users by the Winter ‘21 Release

Use the Attribute ignoreEditPermissionForRendering = "True" for apex:inputFIeld for the resolution. Please find the latest release notes. https://releasenotes.docs.salesforce.com/en-us/...
user avatar
2 votes

Enforcing Guest User Object Permission Changes, How can Guest user Edit Custom Objects now?

It should still work if you are using Without Sharing, but it's challenging. For input fields, you will need to add the new ignoreEditPermissionForRendering attribute on apex:inputField. This will ...
user avatar

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