Create a policy
Define a named set of permissions.
The policy document
Example
{
"version": "2026-09-17",
"name": "database-read-only",
"description": "Read access to every database collection in this project.",
"permissions": [
{
"sid": "Statement1",
"effect": "Allow",
"actions": ["database:Read"],
"resources": ["acc_*:pr_4kX9mQvR2tYw7ZbC1dFgHj:database:collection:*"]
}
]
}Use it from code
API reference
Last updated