---
title: "Manager of all Content in a Folder"
description: "Grant manager role for content in /my/folder using path condition regex, covering all sub-folders. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/access-policies/samples/manager-of-all-content-in-a-folder"
---

# Manager of all Content in a Folder

This Access Policy grants the `manager` role over content in a folder. It uses the [path](/documentation/gitana/4.0/engine/access-policies/conditions/path.md) condition with the regular expression `^/my/folder/.*`, so that the statement applies to content located under the `/my/folder` folder, including its sub-folders.

## JSON

```
{
    "title": "Manager of all Content in a Folder",
    "statements": [{
        "action": "grant",
        "roles": ["manager"],
        "conditions": [{
            "conditions": [{
                "type": "path",
                "config": {
                    "path": "^/my/folder/.*"
                }
            }]
        }]
    }]
}
```
