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
Alexander SuarezAlexander Suarez 

Security Specialist Set record-level security settings

I can't pass this test, I've been testing things for more than 4 hours and I can't pass it.
Attached catches of all sections.

User-added imageUser-added imageUser-added imageUser-added imageUser-added image
Same error all time and Apex Test Execution error to

"Challenge Not yet complete... here's what's wrong:
We couldn't find the Opportunity record owned by Samantha Cordero with the expected Stage. Please make sure the record exists and it contains the correct values according to the requirements." 

1.
sb_security.BeAwesome
helpAStranger
Fail
System.QueryException: List has no rows for assignment to SObject
Class.sb_security.BeAwesome.createUser: line 133, column 1 Class.sb_security.BeAwesome.setup: line 127, column 1
2
sb_security.BeAwesome
hugYourMother
Fail
System.QueryException: List has no rows for assignment to SObject
Class.sb_security.BeAwesome.createUser: line 133, column 1 Class.sb_security.BeAwesome.setup: line 127, column 1

Thx

Joe KeaslerJoe Keasler
I am stuck in the same way - except - I have satisfied the hugYourMother piece - but the helpAStranger bit has been nightmarish - searching for resolution
 
Dmitry Rakul 7Dmitry Rakul 7
@Alex, @Joe,

For helpAStranger pass: ensure your OWDs sharing rules are set properly. You should be sharing the opportunities with a Project Managers public group (wait for recalculation to be done before running the test).

For hugYourMother pass: ensure your OWDs sharing rules are set properly. You should be sharing the opportunities owned by Execs+Subordinates with Inside Sales roles (wait for recalculation to be done before running the test).