---
title: "Sys.Registration.Metadata"
slug: "sysregistrationmetadata"
updated: 2024-08-21T07:26:01Z
published: 2024-08-21T07:26:01Z
canonical: "support.lusid.com/sysregistrationmetadata"
---

> ## 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.

# Sys.Registration.Metadata

| **Type** | **Read/write** | **Author** | **Availability** |
| --- | --- | --- | --- |
| [Data provider](/v1/docs/what-are-a-data-provider-and-a-direct-provider) | Read | Finbourne | Provided with LUSID |

The `Sys.Registration.Metadata` provider enables you to write a [Luminesce SQL query](/v1/docs/understanding-the-luminesce-sql-query-syntax) that retrieves metadata for providers in Luminesce.

> **Note:** The LUSID user running the query must have sufficient [access control permissions](/v1/docs/creating-policies-to-control-access-to-providers-for-different-luminesce-end-users) to both use the provider *and* read system provider metadata. This should automatically be the case if you are the domain owner.

**See also:** [Sys.Registration.Metadata.Writer](/v1/docs/sysregistrationmetadatawriter), [Sys.Registration](/v1/docs/sysregistration)

## Basic usage

```sql
select * from Sys.Registration.Metadata where <filter-expression>;
```

## Data fields

By default, `Sys.Registration.Metadata` 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 = 'Sys.Registration.Metadata' and FieldType = 'Column';
```

> **Note:** Fields marked 'main' are returned by queries that include a caret character, for example `select ^ from Sys.Registration.Metadata`.

## Examples

> **Note:** For more example Luminesce SQL queries, visit our [Github repo](https://github.com/finbourne/luminesce-examples/tree/master/examples).

### Example 1: Retrieve first 10 rows of metadata across all providers

```sql
select * from Sys.Registration.Metadata limit 10
```

### Example 2: Retrieve metadata for a particular provider

```sql
select * from Sys.Registration.Metadata where ProviderName = 'Views.MaturityDaysToExpiry'
```

### Example 3: Retrieve values for a particular metadata key

```sql
select ProviderName, MetadataValue from Sys.Registration.Metadata where MetadataKey = 'RebalanceAlgo'
```
