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
Vineeth VishwanathVineeth Vishwanath 

Enable Change Data Capture for OpportunitySplit

I am trying to subscribe to the OpportunitySplitChangeEvent but getting the below error.

403::User not allowed to subscribe CDC without required permissions

I can access the Opportunity events without any issues. The user I am using has a read-only profile with a permission set assigned, which has 'View All' access for Opportunity under Object settings. I cannot see the object settings for OpportunitySplit.

I tried enabling the 'View All Data' setting under the System permissions in the permission set, but some of my clients wouldn't want to do that.

Is there a way to get the OpportunitySplit events without giving the 'View All Data' permissions under system settings? I am ok with changing my profile type but want to avoid providing the 'View All Data' permission.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Vineeth,
You need to Enable Modify All Data permission.

Refer the below help article.
https://trailblazer.salesforce.com/issues_view?id=a1p3A000001SHldQAG&title=view-all-data-permission-is-not-sufficient-to-subscribe-cdc-events

If this helps, please mark it as best answer.

Thanks!!
Vineeth VishwanathVineeth Vishwanath
@ankaiah That does not work. I don't want to give Modify All, I want to avoid View All Data as well. Anyway, your link is not valid for versions after Summer '20. 
 
cnskl xjakcnskl xjak
This is looking very similar you can check the informatiobn about this issue here on this page (https://apkperfection.com/sonic-forces-mod-apk/) I hope you can fix this issue.