Permission Issue While Creating or Accessing Collections Using User Token

Hi everyone,

I’m working with Directus multi-language collections using relational tables, and I’m trying to insert and access records using the Directus SDK from a custom script.

Error I’m getting:

[ERROR] [RESERVATION] Cannot access reservation collection: You don't have permission to access this.
[ERROR] [RESERVATION] Status: 403

What I’ve already checked:

  • Assigned the Administrator role to the user

  • Verified collection-level permissions (read/create/update)

  • Regenerated the user access token

  • Confirmed the correct environment variables are being used

Despite all this, I’m still getting the same 403 permission error when accessing or creating records via the SDK.

Question:

  • Is there anything specific I should check for multi-language + relational collections?

  • Are there any known limitations or extra permission requirements when using the Directus SDK with user tokens?

  • Could this be related to policy permissions, system collections, or role caching?

Any guidance or suggestions would be really appreciated.

1 Answer

1

My best guess without looking at the exact schema is that you are either missing the admin-user token/login in the SDK (eg it’s trying it without auth), or you have a typo in the SDK usage, meaning that it’s trying to insert the nested relational data of the SDK request into a collection that doesn’t exist