Skip to main content
added 15 characters in body
Source Link
cropredy
  • 74.8k
  • 12
  • 132
  • 301

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!

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!

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!

Source Link
prem22
  • 1.4k
  • 6
  • 18

How to set 'View All' Permission for Salesforce Files

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!