---
title: ProvisioningTreeList and Views setup
slug: provisioningtreelist-and-views-setup
docTags: 
createdAt: 2025-06-11T20:26:19.220Z
---

## Issue

This feature allows you to have custom toolbar buttons which point at an object and present a tree list with custom search and columns as a custom view. This article requires some knowledge of configuration of custom search forms and lists.

This article will use PrivilegedAccounts as the object.

## Solution

### Toolbar Button

On Resources > Privileged Accounts > Web.Toolbar (the one with no flags) add a new RibbonButton

```text
  <RibbonButton Link="=/" StartPage="tree/query?view=Web.MyView" Text="#view/instances;View List" ImageUrl="list">
  </RibbonButton>
```

The name of the view can be customised, but this in the StartPage configuration, this should be prefixed with Web.  The example we are using is Web.**MyView**. The name of the view should be used in all of the parameters below, e.g. Web.MyView\.List and Web.MyView\.Search

### Columns

On Resources > Privileged Accounts create a new parameter named Web.MyView\.List with the following content customised to your requirements

```text
<?xml version="1.0" encoding="utf-16"?>
<WebForm>
    <Panel>
        <ProvisioningTreeList ZeroCountTemplate="No Accounts Found" SelectType="None">
            <Columns>
                <ActivateGridColumn Title="Last Password Reset" BoundValue="PasswordLastSet" Format="datetime">
                </ActivateGridColumn>
                <ActivateGridColumn Title="Next Password Reset" BoundValue="PasswordNextChange" Format="datetime">
                </ActivateGridColumn>
            </Columns>
        </ProvisioningTreeList>
    </Panel>
</WebForm>
```

### Search

On Resources > Privileged Accounts create a new parameter named Web.MyView\.Search with the following content customised to your requirements

```text
<?xml version="1.0" encoding="utf-16"?>
<WebForm>
    <Panel Width="100%">
        <ValidatedTextBox ID="ValidatedTextBox1" Label="Name" ActivateBind="displayName" />
        <QuerySizeLimit ID="sizeLimit" Label="Max Items" ActivateBind="sizeLimit">
        </QuerySizeLimit>
        <Literal ID="Literal1" Text="Debug Test" />
    </Panel>
    <Query><![CDATA[1=1

    ]]></Query>
    <QueryDescription><![CDATA[


    ]]></QueryDescription>
</WebForm>
```

