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
rani nasserrani nasser 

Superbadge Security Specialist Step 2 Error

I sepnt days going over this error "
Challenge Not yet complete... here's what's wrong: 
The sharing rule that shares Opportunities owned by Field Sales users with Inside Sales users does not appear to be setup correctly.
Close errors
" with no luck.
I am missing something but I have no idea what it is....please help
User-added image

User-added image

Field Sales User Profile
I checked (Create and Customize Dashboards,Create and Customize List Views,Create and Customize Reports,Edit My Own Posts)
User-added image

Inside Sales User Profile
I Checked (
Create and Customize Dashboards,Create and Customize List Views,Create and Customize Reports,Edit My Dashboards,
Edit My Own Posts,Edit My Reports,Create Report Folders,Create Dashboard Folder)
User-added imageOWD
Opportinity is set to (Private)
User-added image
Not sure what am I Missing ..Apex is failling as well (one pass and one fails)
 
NagendraNagendra (Salesforce Developers) 
Hi Rani,

Sorry for this issue you are facing.

May I suggest you please refer to below links which might help you further. Hope this helps.

Thanks,
Nagendra
rani nasserrani nasser
Thanks Nagendra...my issue was in my second sharing rule..I have selected (owner: Role and it should be Role & Subordinate) I was able to finally pass it ..but I am still confused about why we need the second role?? based on the role Hierarchies Sales Excutive is above Inside sales user which means by defult they will see their record right?
rani nasserrani nasser
any help ...I am still confused about why we need the second role?? based on the role Hierarchies Sales Excutive is above Inside sales user which means by defult they will see their record right?
Trivikrama Rao Padakandla 17Trivikrama Rao Padakandla 17
@Nagendra : The first link is not working. 
iTayoiTayo
OMG! Finally passed this challenge!!
To ANYONE out there suffering with the Challenge 2 of the "#Security Specialist" #Superbadge.... I feel felt your pain

If you've ever seen an error like "System.QueryException: List has no rows for assignment to SObject" or "Class.sb_security.BeAwesome.createUser: line 133, column 1" after the "Apex Test Execution"... Triple check your profiles and roles names (stored in tmpVar1)... and ask your developper console for further assistance!

Make sure to always test which value tmpVar1 has or if it returns any rows!
e.g:
SOQL_EXECUTE_BEGIN [133]|Aggregations:0|SELECT Id FROM UserRole WHERE Name = :tmpVar1User-added image
Shubhangi Nilajkar 3Shubhangi Nilajkar 3
Error: System Assert Exception: Asseration failed: Field Sales User should not be able to read Opportunities owned by someone else. However , the test returned records not allowed by User #sadthrombone: Expected 1, Actual 3
MPB SalesforceMPB Salesforce
Hello every One if you have any query regarding this challenge so please try once this link also I hope you will get definitely solution regarding your issue

https://www.youtube.com/watch?v=9G6hlTGpO6k&list=PLQf_Kv-dMRBKhNMH1PCisUIDYyDIZ35U1&index=2