Back

[SOLVED] 401 Access Document with Any Permission

  • 0
  • Self Hosted
  • Databases
Suiii
29 Sep, 2023, 06:50
TL;DR
The user was having trouble accessing a document with any permission and received a 401 error. They discovered that one of the related collections did not have permission. The user asked if this applied to all related collections and mentioned that there was no authentication yet. It was clarified that the collection was granted to any user. The solution suggested was to grant permissions to the user or remove all relationships. The user asked how to do this and it was suggested to perform a normal query from the database. It was also mentioned that missing permissions to a related collection could be the issue. The user confirmed that there are relationships and they did not miss a migration.
Suiii
29 Sep, 2023, 06:52
Suiii
29 Sep, 2023, 06:59
Drake
29 Sep, 2023, 07:09

Oye...I hope you didn't miss a migration from 1.3 👀

Drake
29 Sep, 2023, 07:10

Does this collection have relationships?

Suiii
29 Sep, 2023, 07:20

yes I did

Suiii
29 Sep, 2023, 07:20

yes there is

Suiii
29 Sep, 2023, 07:20

there are

Drake
29 Sep, 2023, 07:26

What action are you performing?

Drake
29 Sep, 2023, 07:26

You could be missing permissions to a related collection

Suiii
29 Sep, 2023, 07:28

just normal query from database

Suiii
29 Sep, 2023, 07:28

possibly, how can I do?

Suiii
29 Sep, 2023, 07:29

remove all relationship

Drake
29 Sep, 2023, 07:29

Sure or grant permissions to the user

Suiii
29 Sep, 2023, 07:30

to which user? actually, the collection is granted to any .

Suiii
29 Sep, 2023, 07:30

there is no authentication yet

Drake
29 Sep, 2023, 07:30

For all related collections?

Suiii
29 Sep, 2023, 07:32

<:appwriteheart:782571497393750036> <:appwriteheart:782571497393750036> you arr right, one of related collection was no permission.

Suiii
29 Sep, 2023, 07:32

luv you

Drake
29 Sep, 2023, 16:36

[SOLVED] 401 Access Document with Any Permission

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more