Page 1 of 1

DBSQ254 - You don't have permission to access system collections.

Posted: Mon Nov 04, 2013 12:42 pm
by ares

Why I can't read from user collection?
I'm getting this error:

{
"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."
}
}

Tried by supplying the session token and _id of user to a user read service, even tried with only _id an donly session and without both.


DBSQ254 - You don't have permission to access system collections.

Posted: Mon Nov 04, 2013 1:34 pm
by Maryna Brodina

Hello! Could you post screenshot from service settings and request parameters tab?


DBSQ254 - You don't have permission to access system collections.

Posted: Tue Nov 05, 2013 5:18 am
by ares

I've sloved it. Now I've another similiar problem. In my above problem I was trying to read the user. I've solved that.

Here I'm trying to delete user, and getting this error. Image


DBSQ254 - You don't have permission to access system collections.

Posted: Tue Nov 05, 2013 6:33 am
by Vladimir Fesko

I believe you should check an "acl" field value of user being deleted - probably your session token is owned by user which is not listed in acl object.


DBSQ254 - You don't have permission to access system collections.

Posted: Tue Nov 05, 2013 7:02 am
by ares

This is acl value of user

{"*":{"read":true},"52776adde4b0650b04d61647":{"read":true,"write":true}}

Actually it's like admin, one deleting other user.


DBSQ254 - You don't have permission to access system collections.

Posted: Tue Nov 05, 2013 7:16 am
by Vladimir Fesko

And is session token used in request for user "52776adde4b0650b04d61647" ? And is it still valid? It expires in 2h or so.


DBSQ254 - You don't have permission to access system collections.

Posted: Tue Nov 05, 2013 8:03 am
by ares

Yes find out another thing.

A user can delete himself, but can't delete other. How can I do that???


DBSQ254 - You don't have permission to access system collections.

Posted: Tue Nov 05, 2013 8:38 am
by ares

I've solved it using using this http://docs.appery.io/documentation/b...