Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

403 Forbidden error when listing users collection

Hello,
No matter what I try to set i get this error when I try to use list service on users collection. I have entered valid session token returned after successful login.
Please help me find what I am missing - must be something simple.

{
"status":"403 Forbidden",
"url":"https://api.appery.io/rest/1/db/colle...",
"response":{
"code":"DBSQ254",
"description":"You don't have permission to access system collections."
}
}

This is my login response:

Image

This is what i get as a response when I try to list user collection:

Image

These are my settings for list service:

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

403 Forbidden error when listing users collection

Hello Adam,

Have you set the ACL for this user in your DB?
It's described here :: http://docs.appery.io/documentation/b...

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

403 Forbidden error when listing users collection

This is what I got in ACL column of the user in question:

{"*":{"read":true},"527ab8d1e4b017bd81a8e114":{"read":true,"write":true}}

Does this setting refer to whole USER COLLECTION or to the user object?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

403 Forbidden error when listing users collection

Hello!
1) It's for specific record in collection
2) to call Users collection use address https://api.appery.io/1/db/collection... (here is more information http://docs.appery.io/documentation/b...)

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

403 Forbidden error when listing users collection

Thanks, but I thought I was calling Users collection. As you can see on my settings it is like that:

{database_url}/collections/_users

In my previous post I was asking if this ACL JSON string refers to one user (so this user is granted "read" "write" rights to his object) or the whole users collection (so this user is granted "read" "write" rights to collection object). As I understand you wrote about URL setting in service setup.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

403 Forbidden error when listing users collection

Thanks Maryna.

I finally found out what I was doing wrong. The url was indeed incorrect. I used the default URL created during initial service setup, and I overlooked that part of documentation saying it is got to be this:

https://api.appery.io/rest/1/db/users

Thanks.
Bye

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

403 Forbidden error when listing users collection

Glad it's working now! Thank you for update!

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

403 Forbidden error when listing users collection

You very welcome :-)

Return to “Issues”