function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nickolay IvanovichNickolay Ivanovich 

Superbadge Security Specialist Step 2

User-added imageUser-added imageUser-added imageHelp please with this error
Raj VakatiRaj Vakati
Refer this link 

https://trailheadbaby.blogspot.com/2017/08/security-superbadge-2.html
 
Deepali KulshresthaDeepali Kulshrestha
Hi Nickolay,

Your sharing rule will be incorrect. You should have two opportunity sharing rules. The one for Field Sales users and Inside Sales users was not documented in the requirements but was part of the code checker.

The Field Sales/Inside Sales Opportunity sharing rule requirement is laid out in the error message: "The sharing rule that shares Opportunities owned by Field Sales users with Inside Sales users."

Project Management opportunity sharing rule are defined as this...
-Project managers need to view opportunities that have a type of "Existing Customer - Upgrade" and a stage of Closed Won, but they can’t see any other opportunities. 
-Note that project managers have a variety of responsibilities within your Salesforce org, so you can’t use role for record sharing.

Here you can find related queries and their solution:-
https://developer.salesforce.com/forums/?id=906F0000000kEGAIA2

https://trailheadbaby.blogspot.com/2017/08/security-superbadge-2.html

https://success.salesforce.com/answers?id=9063A000000eDz5QAE

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha