Skip to main content

DATABASE_PERMISSION_DENIED

Encountering an error? Get help with AI tools

Error Cause

The current user does not have permission to perform this database operation.

Solutions

Check Database Permissions

When reading or writing to the database, the _openid field is used as the basis for determining data ownership.

Mini Program Scenario

For mini program users, please check data permissions in "WeChat Developer Tools/CloudBase Console/Database/Data Permissions".

小程序开发者工具-云开发控制台-数据库-数据权限