```php
$collections = $app['acl']->get($user_template)->get_granted_base();
$baseIds = array_keys($collections);
```