--- title: "Lusid.Portfolio.CustodianAccount" slug: "lusidportfoliocustodianaccount" updated: 2026-01-15T16:07:32Z published: 2026-01-15T16:07:32Z canonical: "support.lusid.com/lusidportfoliocustodianaccount" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.lusid.com/llms.txt > Use this file to discover all available pages before exploring further. # Lusid.Portfolio.CustodianAccount | **Type** | **Read/write** | **Author** | **Availability** | | --- | --- | --- | --- | | [Data provider](/v1/docs/what-are-a-data-provider-and-a-direct-provider) | Read | FINBOURNE | Provided with LUSID | The `Lusid.Portfolio.CustodianAccount` provider enables you to write a [Luminesce SQL query](/v1/docs/understanding-the-luminesce-sql-query-syntax) that retrieves [custodian accounts](/v1/docs/segregating-holdings-using-custodian-accounts) from one or more transaction portfolios. > [!NOTE] > **Note**: By default, `Lusid.Portfolio.CustodianAccount` cannot retrieve properties for custodian accounts. To do this, you must first configure `Lusid.Portfolio.CustodianAccount` to 'inline' properties. [See how to do this](/v1/docs/how-do-i-configure-luminesce-entity-providers-to-readwrite-properties). **See also:** [Lusid.Portfolio.CustodianAccount.Writer](/v1/docs/lusidportfoliocustodianaccountwriter) ## Basic usage ```sql select * from Lusid.Portfolio.CustodianAccount where ; ``` ## Query parameters `Lusid.Portfolio.CustodianAccount` has parameters that enable you to filter or refine a query. To list available parameters, their data types, default values, and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries): ```sql select FieldName, DataType, ParamDefaultValue, Description from Sys.Field        where TableName = 'Lusid.Portfolio.CustodianAccount' and FieldType = 'Parameter'; ``` ## Data fields By default, `Lusid.Portfolio.CustodianAccount` returns a table of data populated with particular fields (columns). You can return a subset of these fields. To list fields available to return, their data types, whether fields are considered 'main', and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries): ```sql select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field        where TableName = 'Lusid.Portfolio.CustodianAccount' and FieldType = 'Column'; ``` > [!NOTE] > **Note:** Fields marked 'main' are returned by queries that select a `^` character, for example `select ^ from Lusid.Portfolio.CustodianAccount`. ## Examples > [!NOTE] > **Note:** For more example Luminesce SQL queries, visit our [Github repo](https://github.com/finbourne/luminesce-examples/tree/master/examples). ### Example 1: Retrieve all custodian accounts in every portfolio ```sql select * from Lusid.Portfolio.CustodianAccount ``` ### Example 2: Retrieve all custodian accounts in a particular portfolio ```sql select * from Lusid.Portfolio.CustodianAccount        where PortfolioScope = 'Equities' and PortfolioCode = 'UK' ```