I am currently using Change Data Capture, to subscribe to the ContentVersion change event. Because in my Lightning Web Component (LWC), I am required to automatically refresh the files list once a file is deleted/uploaded.
Hence I am using CDC to listen to ContentVersion change event. Everything is working as expected, when I am testing as System Administrator, however, when I changed to a different profile, it is not working as expected and I get the following error:
Received error from server: {"clientId":"123","channel":"/meta/subscribe","id":"6", "subscription":"/data/ContentVersionChangeEvent", "error":"403::User not allowed to subscribe CDC without required permissions", "successful":false} *I have changed the clientId to shorten the error.
The documentation (Required Permissions for Change Event Subscriber) states, this permission is needed
View All Records for the object
However, I could not find this permission on Files object, when I view the Profile Object Settings. There's only Tab Settings (Tab Hidden, Default Off and Default On). I have tried setting the this setting to 'Default On' but still getting the same error.
Has anyone faced this before and/or got a solution please?
Many thanks for your help and valuable time!