# Cannot access to newly created collection 403 Forbidden

**URL:** <https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822>\
**Category:** Help me!\
**Created:** [November 9, 2023, 9:10am UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822 "2023-11-09T09:10:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Chen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_chen/32/6384_2.png) [@Simon\_Chen](https://community.forestadmin.com/u/Simon_Chen)\
**Post date:** [November 9, 2023, 9:10am UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/1 "2023-11-09T09:10:00Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/4e6bf310e96a940cd9a70d3c982f682ef2f8ff96.png)

Forest admin cannot access to the newly created collection where the error message is shown as the image 403 Forbidden. It is only affected to the new collection. Is there any ways that can solve it?

“meta”: {  
“liana”: “forest-nodejs-agent”,  
“liana\_version”: “1.29.0”,  
“liana\_features”: null,  
“stack”: {“engine”: “nodejs”, “engine\_version”: “18.14.0”}  
}

---

<div class="post-metadata">

**Author:** ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)\
**Post date:** [November 9, 2023, 9:14am UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/2 "2023-11-09T09:14:46Z")

</div>

Hi @Simon_Chen ,

Could you please share the following information with us:

- Project name: …
- Team name: …
- Environment name: …
- Agent (forest package) name & version: …
- Database type: …

What is the schema of your new collection ?

Best regards,

Shohan

---

<div class="post-metadata">

**Author:** ![Simon\_Chen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_chen/32/6384_2.png) [@Simon\_Chen](https://community.forestadmin.com/u/Simon_Chen)\
**Post date:** [November 9, 2023, 9:31am UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/4 "2023-11-09T09:31:42Z")

</div>

Sure, here are the information needed

```
Project name: Durian
Team name: Operations
Environment name: Production
Agent (forest package) name & version: "@forestadmin/agent": "^1.16.2",
Database type: PostgreSQL

```

I am using the automatic schema generation. This is what I can find in forestadmin-schema.json regarding the new collection schema

````javascript
{
      "actions": [],
      "fields": [
        {
          "defaultValue": null,
          "enums": [],
          "field": "commission",
          "integration": null,
          "inverseOf": null,
          "isFilterable": true,
          "isPrimaryKey": false,
          "isReadOnly": false,
          "isRequired": false,
          "isSortable": true,
          "isVirtual": false,
          "reference": null,
          "type": "Number",
          "validations": []
        },
        {
          "defaultValue": null,
          "enums": [],
          "field": "date",
          "integration": null,
          "inverseOf": null,
          "isFilterable": true,
          "isPrimaryKey": false,
          "isReadOnly": false,
          "isRequired": false,
          "isSortable": true,
          "isVirtual": false,
          "reference": null,
          "type": "Number",
          "validations": []
        },
        {
          "defaultValue": null,
          "enums": [],
          "field": "month",
          "integration": null,
          "inverseOf": null,
          "isFilterable": true,
          "isPrimaryKey": false,
          "isReadOnly": false,
          "isRequired": false,
          "isSortable": true,
          "isVirtual": false,
          "reference": null,
          "type": "String",
          "validations": []
        },
        {
          "defaultValue": null,
          "enums": [],
          "field": "no",
          "integration": null,
          "inverseOf": null,
          "isFilterable": true,
          "isPrimaryKey": true,
          "isReadOnly": true,
          "isRequired": false,
          "isSortable": true,
          "isVirtual": false,
          "reference": null,
          "type": "Number",
          "validations": []
        },
        {
          "defaultValue": null,
          "enums": [],
          "field": "type",
          "integration": null,
          "inverseOf": null,
          "isFilterable": true,
          "isPrimaryKey": false,
          "isReadOnly": false,
          "isRequired": false,
          "isSortable": true,
          "isVirtual": false,
          "reference": null,
          "type": "String",
          "validations": []
        },
        {
          "defaultValue": null,
          "enums": [],
          "field": "uid",
          "integration": null,
          "inverseOf": null,
          "isFilterable": true,
          "isPrimaryKey": false,
          "isReadOnly": false,
          "isRequired": false,
          "isSortable": true,
          "isVirtual": false,
          "reference": null,
          "type": "Number",
          "validations": []
        },
        {
          "defaultValue": null,
          "enums": [],
          "field": "year",
          "integration": null,
          "inverseOf": null,
          "isFilterable": true,
          "isPrimaryKey": false,
          "isReadOnly": false,
          "isRequired": false,
          "isSortable": true,
          "isVirtual": false,
          "reference": null,
          "type": "String",
          "validations": []
        }
      ],
      "icon": null,
      "integration": null,
      "isReadOnly": false,
      "isSearchable": true,
      "isVirtual": false,
      "name": "commission_report",
      "onlyForRelationships": false,
      "paginationType": "page",
      "segments": []
    },```
````

---

<div class="post-metadata">

**Author:** ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)\
**Post date:** [November 9, 2023, 10:11am UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/5 "2023-11-09T10:11:11Z")

</div>

I can see other errors in console above in your image.  
Can you share the other logs from your browser ?  
Do you have any error on your agent as well ?

Regards,

Shohan

---

<div class="post-metadata">

**Author:** ![Simon\_Chen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_chen/32/6384_2.png) [@Simon\_Chen](https://community.forestadmin.com/u/Simon_Chen)\
**Post date:** [November 9, 2023, 10:19am UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/6 "2023-11-09T10:19:52Z")

</div>

Browser logs

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/7/7e166aedb4b0322c137cddcd64b485ef51f01550.png)

Agent logs

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/9/92257562edf838dac5f6b8525d39aae0e7f65bca.png)

---

<div class="post-metadata">

**Author:** ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)\
**Post date:** [November 9, 2023, 10:39am UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/7 "2023-11-09T10:39:33Z")

</div>

Can you check your roles and see if you have read this collection ?

---

<div class="post-metadata">

**Author:** ![Simon\_Chen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_chen/32/6384_2.png) [@Simon\_Chen](https://community.forestadmin.com/u/Simon_Chen)\
**Post date:** [November 9, 2023, 10:53am UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/8 "2023-11-09T10:53:33Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/e/e5945281316c34602790da66efb5beb431f75f05.png)

Yes, I am sure that my role has the read permission for the new collection.

---

<div class="post-metadata">

**Author:** ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)\
**Post date:** [November 9, 2023, 2:41pm UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/9 "2023-11-09T14:41:33Z")

</div>

I cannot see any issue on my end.  
Could you please restart your agent ?

Also, do you have your default permissions at true for the new collections ? Or did you change the roles manually ?

Best regards,

Shohan

---

<div class="post-metadata">

**Author:** ![Simon\_Chen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_chen/32/6384_2.png) [@Simon\_Chen](https://community.forestadmin.com/u/Simon_Chen)\
**Post date:** [November 9, 2023, 3:00pm UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/10 "2023-11-09T15:00:33Z")

</div>

I have restarted few times before this, its still same. Yes I have the permission true for the new collection and I didn’t change the role at all.

Just my assumption, is there any limits for the number of collections in a project?

---

<div class="post-metadata">

**Author:** ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)\
**Post date:** [November 9, 2023, 3:12pm UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/11 "2023-11-09T15:12:46Z")

</div>

No there is it is no limitation for the number of collections.

Could you please try to disable and re-enable the permissions for this collection?

---

<div class="post-metadata">

**Author:** ![Simon\_Chen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_chen/32/6384_2.png) [@Simon\_Chen](https://community.forestadmin.com/u/Simon_Chen)\
**Post date:** [November 9, 2023, 4:02pm UTC](https://community.forestadmin.com/t/cannot-access-to-newly-created-collection-403-forbidden/6822/12 "2023-11-09T16:02:43Z")

</div>

Nice!!! , it works now by just disable and re-enable it.
