Views:
TypeRead/writeAuthorAvailability
Data providerReadFinbourneProvided with LUSID

The Lusid.Person provider enables you to write a Luminesce SQL query that retrieves details about person entities stored in LUSID, such as portfolio managers, traders and so on.

Note: The LUSID user running the query must have sufficient access control permissions to both use the provider and read person data stored in LUSID. This should automatically be the case if you are the domain owner.

See also: Lusid.Person.Writer

Basic usage

select * from Lusid.Person where <filter-expression>

Query parameters

Lusid.Person 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:

select FieldName, DataType, ParamDefaultValue, Description from Sys.Field where TableName = 'Lusid.Person' and FieldType = 'Parameter';

Data fields

By default, Lusid.Person 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:

select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Lusid.Person' and FieldType = 'Column';

Note: Fields marked 'main' are returned by queries that start select ^ from Lusid.Person...

Examples

Note: For more example Luminesce SQL queries, visit our Github repo.

Example 1: Retrieve the first N persons

You can retrieve the name, description, and internal LUID for the first 20 persons stored in LUSID:

select * from Lusid.Person Limit 20;

Example 2: Retrieve details for particular persons

You can retrieve details for particular persons by specifying their inlined identifier key fields. In this example, all the person with identifier keys represented by the PortManIdInvestContId and TraderId fields are retrieved. Note that persons without these identifier keys are omitted:

select LusidEntityId, PortManId, InvestContId, TraderId from Lusid.Person;

Example 3: Retrieve all persons that have particular name and description attributes

You can retrieve the name, description, and internal LUID for persons stored in LUSID whose attributes match particular character strings:

select * from Lusid.Person where DisplayName like 'John%' and Description like '%trader%';