+ Start a Discussion
Amrendra Kumar 5Amrendra Kumar 5 

403:denied_by_security_policy:create_denied

Hello Team

I have create a platform event and added a custom field to it. When i do a subscribe call using the streaming API, i get the "403:denied_by_security_policy:create_denied" error.
For my user "System Administrator" profile is assigned and it has "read" and "create" both the permission assigned for my platform event. 

Please suggest the solution.

Thanks!
Khan AnasKhan Anas (Salesforce Developers) 
Hi Amrendra,

I trust you are doing very well.

Please refer to the below links with a similar discussion which might help you further with the above issue.

https://github.com/forcedotcom/EMP-Connector/issues/17

https://stackoverflow.com/questions/49918342/error-when-subscribing-to-operations-through-the-java-client

https://jdspaceit.wordpress.com/2017/10/19/salesforce-platform-events-for-enterprise-messaging/


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas
Amrendra Kumar 5Amrendra Kumar 5
Hi Anas, 

Thanks for your reply.

I found the problem, i was providing the object name of my platform event while i should provide the api name of that object.
For example : abc__e instead of abc.

Regards,
Pratibha