Salesforce’s Spring ‘20 Release: Changes regarding guest users starting March 1, 2020

One addition to the previously stated "What Do I Need To Do:" 

If none of the above resolved the issue for you, the final option is for you to request that Salesforce delay auto activating the guest user change in your org until summer ‘20 to give yourself more time to get situated as explained in this documentation

Hey out of curiosity,
 Has anyone figured out how to still give permission to Edit Access to guest users?

I have Skuid pages exposed to our partners/clients through Site’s guest users which allow them to edit some records, and this is going to have a huge impact on us, and looking for solutions.

Anything would be appreciated greatly!

Tahnk you

Hi Dave, with the guest user secure record access settings in place, you do have to write some Apex to allow guest users to edit records (see #2 above for more details and Salesforce best practices to enable guest users to update records.)

Be very precise with this because you are intentionally allowing guest users to circumvent the Salesforce security model that you configured. Make triple sure that you are tightly controlling what that Apex is doing and make it really super specific to exactly what you need guest users to be able to do, no more.

As per #3, if you run into trouble on the Apex side of things and/or would like to more time before these changes are applied to your orgs, reach out to Salesforce with details of your use case and their task force should be able to assist you and give you recommendations.

If you run into issues with the Apex/Skuid integration, check out the docs on Skuid and Apex and as always you can post any questions here on the community.

Hey Dave,

We had this same issue. I had a call with SalesForce on Friday and I was told that if you give the Site Guest User profile “modify all” access to the objects that you need access to, the site guest user can edit.

I tried it and it worked in our sandbox org. 

Hi, and Thank you for the info,
But that’s not in line with I was reading online, apparently the Modify ALL will be disabled as well

“Guest cannot be granted ‘View All Data’ or ‘Modify All Data’ access on objects” security policy will be enforced in Summer’20 release across Salesforce sites

Tami, Did SF tell you this is good temporarily only?

Thank you!

@anna will the apex code work even if the guest user uses a skuid page to 'Edit record"?


@Dave on my call with SalesForce they said it will work permanently. With that said when it comes to this issue I am having a really hard time getting consistant information from SalesForce when I reach out to them for info and help.

@karen

Somehow in my production org the Secure guest user record access got turned on, and now the Guest User profile can no longer see any skuid pages…

I checked all possible settings but i get the same message

I believe the Guest user no longer have access to skuid pages, even though a License is assigned to this Guest Profile

We cannot share the pages manually , as Secure guest user record access = true and SF does not allow to add to public groups, queues or share manually

Any help please???

This is affecting us a lot, as we were not ready for that feature to be turned on , and SF is not responding to us so far

You’ve been INKED! (Something went wrong)
We were unable to find a Skuid Page named Site_offers. The Page is either inaccessible or does not exist. If you believe you should be able to view this Skuid Page, ask your System Administrator to check the Sharing Model for the Page object to ensure that you have access to this Skuid Page.

Hey Dave, sorry to hear that.

  • What version of Skuid are you using?  (See this announcement - Spring 20 also made changes that affect Skuid permission sets in versions before 12.2.9 and 11.2.28)
  • You said that the site Guest User has a license, will you double check that they are assigned the Skuid Page Viewer Permission set?



@Dave you have two options 

  1. You can disable “Secure guest user record access” by
  • Navigate to--> Settings-->Sharing Setting
  • Ensure you don't have any Sharing Rules set up. 
  • Click [Edit] scroll all the way to the down. On the bottom left you should be able to uncheck "Secure guest user record access"
2. Set up Sharing Rules for your Skuid pages that the guest user accesses.
  • Navigate to--> Settings-->Sharing Setting
  • Look for "Page Sharing Rules"
  • Click [New]
  • Fill in the Label & Rule Name
  • Select the radio button "Guest user access, based on"
  • In the Criteria section: Field: Page Name; Operator: equals; Value: "Enter the name of the Skuid Page you are sharing".
  • Click [Save]
  • You should be able to see/read the page.
  •  If you need to edit the page, you need to give "modify all" access to the guest user profile for the requested objects in the skuid page.
Hope that helps!

@tami

Hey thank you very much, Salesforce finally reached out last night and told me exactly those steps for disabling the modify all, it was sharing rules the issue that was not letting me uncheck that setting!

And thank you for Sharing rule of pages.

You are very knowledgable and thank you for sharing that knowledge!

I appreciate the help :slight_smile:


Checklist for using Skuid’s file upload component in communities or sites where guest user secure record access is activated:

  1. Does your version of Skuid include updated version of the file upload component? To use the file upload component with guest user secure record access activated, you need to be on 11.2.30 or later or 12.2.14 or later.  Remember to always test new versions in a Sandbox environment before installing them in production; links available at skuid.com/releases.
  2. Does the guest user have access to the record they need? Use sharing rules to grant read-only access to the Salesforce object & record, e.g. share all records where Created By Id is the site guest user’s Id.
  3. Does the guest user have access to Skuid? Make sure the the guest user profile has been assigned a Skuid license and the Skuid Page Viewer permission set.
  4. Make sure the site has access to the UploadImage Visualforce page. If you are using the skuid:page component in your Visualforce or Lightning page, you must include the UploadImage Visualforce page in the list of pages your site has access to.

@dave happy to help! 

@Dave not sure if you have this all figured out in your org but I am still a bit confused and SalesForce keeps giving me different answers every day whether this disable sharing rules and site guest users can still edit. With that said, I wanted to share  couple of links with you that SF shared with me and ask if you get any new info if you wouldn’t mind sharing it.

Secure Guest User Sharing Settings: https://help.salesforce.com/articleView?id=networks_secure_guest_user_sharing.htm&type=5

Community Discussion: https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000004mDI

Thanks!

@tami I tried in sandbox with your suggestion of using modify all and it works fine.

But I had a case open with salesforce and cannot get a clear answer whether we will be able to give modify all in summer 20… So far you are the only one I’ve heard this from and so far it works. 

I’ve been watching the community thread you mentionned above and from I see there: Guest cannot be granted ‘View All Data’ or ‘Modify All Data’ access on objects” security policy will be enforced in Summer’20 release across Salesforce sites

Salesforce has given our org until June 1st (or summer 20 release) to find a solution

The other solution would be to do it with Apex Code, but my Dev is not sure on how to write this apex code, as it’s skuid making the ‘changes’ to SF and skuid being a managed package cannot edit/view the classes he needs

Overall we are all just as confused if not more lol

This is possibly useful if we decide to go Apex Way: https://www.learncommunitycloud.com/s/news/guest-user-record-access-development-best-practices-20Y1U000000UkITUA0

I will keep updating here as I get more info!

@Dave thanks for making me feel like I am not going nuts with this. 

Thanks for sharing that article, I have seen it before but we are not lightening enabled so it won’t work for us.

To add more complexity to this issue I talked to a SF Dev today that said that what we currently have in place for edit access won’t work after summer release (as you know) but an Apex class/trigger won’t give edit access to guest users after the summer release either.

So my question was how do I give them edit access, she said you won’t be able to after the summer release.

I asked if we will be able to disable “Secure Guest Access” flag after Summer release so that our guest users can have edit access. Her reply was they don’t know yet. 

The plot thickens!

@ tami

We have not moved to lightning yet either, but from what I Understood from my Dev is that:

Guest User will do the changes as usual on the public-facing skuid page, and then the apex will basically do the following: 

1- ‘Capture all the changes of that session’
2- Open a session under a SF user for authentication
3- this user will be the one ‘Updating record’ with all the changes guest user made

Dev told me it should be straightforward if i was using a VF page let’s say instead of Skuid

The issue with Skuid, is that he does not know how Skuid captures and sends the changes to SF, and not sure how he would be able to do step 1. As skuid is a managed package he cannot dig deeper or change any skuid classes.

@anna is there some documentation/ideas on how we would be able to do step 1? (capture all changes made on skuid page, and use apex to update record)

Hopefully that helps, especially if Skuid can help us with that step 1






@ tami

We have not moved to lightning yet either, but from what I Understood from my Dev is that:

Guest User will do the changes as usual on the public-facing skuid page, and then the apex will basically do the following: 

1- ‘Capture all the changes of that session’
2- Open a session under a SF user for authentication
3- this user will be the one ‘Updating record’ with all the changes guest user made

Dev told me it should be straightforward if i was using a VF page let’s say instead of Skuid

The issue with Skuid, is that he does not know how Skuid captures and sends the changes to SF, and not sure how he would be able to do step 1. As skuid is a managed package he cannot dig deeper or change any skuid classes.

@anna is there some documentation/ideas on how we would be able to do step 1? (capture all changes made on skuid page, and use apex to update record)

Hopefully that helps, especially if Skuid can help us with that step 1






Hi Dave, let me check with the team and get back to you.

@Anna any update on Dave’s request?