How to prohibit objects being created in backendless with no ownerId

Occasionally when i create an object in Backendless it is saved without an ownerId. The new object is created in an Android app with a logged in user.

Is there a way to prohibit objects being created in Backendless with no ownerId?

Hi Loren,

for now there is no way to do it, but we will add a possibility to set a constraints for ownerId field in console in next release. I will let you know once it implemented.

Regards,
Stanislav

Objects without ownerId are created only users who have the NonAuthenticatedUser role. That means any user that makes an API call without prior logging in. You can disable the behavior you’re asking about by restricting access to the table in question for the NonAuthenticatedUser role.

Thanks Mark.