[Yandex Cloud documentation](../../index.md) > [Yandex DataLens](../index.md) > Access management > Public access

# Public access

You can make the charts and dashboards you create public, so any user can follow a link and view the object you published without logging in. However, the user will not be able to view chart settings, connections, or the dataset, or run an SQL query.

{% note warning %}

Before publishing any data, make sure that your charts and dashboards do not contain any personal data or trade secrets. Access to published data is not restricted.

{% endnote %}

## Publishing rules {#rules}

Before publishing data, make sure that:

* You have the `Admin` permission to published charts, dashboards, and related objects.
* Your charts and dashboards do not contain any personal data or trade secrets. Access to published data is not restricted.
* The connection your objects run on top of supports data publication. You cannot publish data from the following connections:

  * [Snowflake](../operations/connection/create-snowflake.md)
  * [Metrica](../operations/connection/create-metrica-api.md)
  * [AppMetrica](../operations/connection/create-appmetrica.md)
  * [Yandex Cloud Billing](../operations/connection/create-cloud-billing.md)
  * [DataLens Usage Analytics](../operations/connection/create-usage-tracking.md)
  * [SpeechSense](../operations/connection/create-speechsense.md) (to publish objects, create a connection under a service account)

    {% note info %}

    You can [share](#metrica-share) a dashboard or chart based on Yandex Metrica or AppMetrica data.

    {% endnote %}

To secure your published data:

* Grant the user permission to view only the tables that are used to build a dataset when connecting to a database.
* Minimize the data in a dataset and only add the required filters to your dashboard. You can download data on a public dashboard in a machine-readable format.

## Publishing an object {#how-to-publish}

{% list tabs group=datalens_public %}

- Publishing a dashboard {#dashboard}

  {% note warning %}
  
  If you use the new DataLens object model with [workbooks and collections](../workbooks-collections/index.md):
  
  1. In the left-hand panel, select ![collections](../../_assets/console-icons/rectangles-4.svg) **Collections and workbooks**.
  1. Open the workbook you need and select an object.
  
  Proceed with this guide from Step 2.
  
  {% endnote %}
  
  
  1. On the [navigation page](https://datalens.ru/navigation), find the dashboard and open it.
  1. At the top of the dashboard interface, click ![image](../../_assets/console-icons/ellipsis.svg) and select ![image](../../_assets/console-icons/globe.svg) **Public access**.
  
     ![screen01](../../_assets/datalens/concepts/datalens-public/screen01.png)
  
  1. In the window that opens, set up public access as follows:
  
     1. Under **Current object**, enable publishing. You will see a link for public access to the dashboard below.
  
        {% note info %}
  
        * The dashboard, along with all its included related objects, will be accessible to any internet user via a public access link. To copy it, click **Copy link**.
        * The dashboard and its related objects will only be accessible to authorized users via the link in the browser's address bar, factoring in their access permissions.
  
        {% endnote %}
  
     1. Optionally, under **Author or link to source**, specify the link to the dashboard source or author and its text. The link will be displayed at the bottom of the dashboard.
     1. Optionally, under **Linked objects**, select the objects to make public. By default, DataLens will automatically grant access to all linked objects.
     1. Click **Apply**.
  
     ![screen02](../../_assets/datalens/concepts/datalens-public/screen02.png)

- Publishing a chart {#chart}

  {% note warning %}
  
  If you use the new DataLens object model with [workbooks and collections](../workbooks-collections/index.md):
  
  1. In the left-hand panel, select ![collections](../../_assets/console-icons/rectangles-4.svg) **Collections and workbooks**.
  1. Open the workbook you need and select an object.
  
  Proceed with this guide from Step 2.
  
  {% endnote %}
  
  
  1. On the [navigation page](https://datalens.ru/navigation), find the chart and open it.
  1. At the top of the dashboard wizard, click ![image](../../_assets/console-icons/ellipsis.svg) and select ![image](../../_assets/console-icons/globe.svg) **Public access**.
  
     ![screen03](../../_assets/datalens/concepts/datalens-public/screen03.png)
  
  1. In the window that opens, set up public access as follows:
  
     1. Under **Current object**, enable publishing. You will see a link for public access to the chart below.
  
        {% note info %}
  
        * The chart will be accessible to any internet user via a public access link. To copy it, click **Copy link**.
        * The chart will only be accessible to authorized users via the link in the browser's address bar, factoring in their access permissions.
  
        {% endnote %}
     1. Optionally, under **Author or link to source**, specify the link to the chart source or author and its text. The link will be displayed at the bottom of the chart.
     1. Optionally, under **Linked objects**, select the objects to make public. By default, DataLens will automatically grant access to all linked objects.
     1. Click **Apply**.
     
     ![screen04](../../_assets/datalens/concepts/datalens-public/screen04.png)

{% endlist %}

## Viewing published objects {#public-objects-list}

The DataLens instance [admin](../security/roles.md#datalens-admin) may view a list of all objects published within that instance:

1. Go to the DataLens [home page](https://datalens.ru/?skipPromo=true).
1. In the left-hand panel, select ![sliders](../../_assets/console-icons/sliders.svg) **Service settings**.
1. Select the **Security** tab.
1. Under **Publication**, click **View published**.

## Sharing a chart based on Yandex Metrica or AppMetrica data {#metrica-share}

To share a chart or dashboard containing Yandex Metrica or AppMetrica data, use one of the following methods:

* [Add](../security/add-new-user.md) a user to your organization or cloud and grant them access to a dashboard or chart.
* [Export](../qa/connections.md#uploading-data-logs-api) data to a [Managed Service for ClickHouse®](../../managed-clickhouse/index.md) cluster and use a connection to the ClickHouse® database as a source. To learn more about the Managed Service for ClickHouse® pricing plans, see [Pricing](../../managed-clickhouse/pricing.md).

_ClickHouse® is a registered trademark of [ClickHouse, Inc](https://clickhouse.com)._

## Disabling publication {#publication-disable}

By default, users can publish charts and dashboards for which they have the admin permissions. You can disable this option at the DataLens instance level. After you disable publication:

* All previously published objects will no longer be public.
* Users will not be able to grant public access to objects.

Only the instance [admin](../security/roles.md#datalens-admin) (the `datalens.admin`role) can disable publication.

To disable object publication:

1. Go to the DataLens [home page](https://datalens.ru/?skipPromo=true).
1. In the left-hand panel, select ![sliders](../../_assets/console-icons/sliders.svg) **Service settings**.
1. Select the **Security** tab.
1. Under **Publication**:

   1. View a list of published objects that will no longer be publicly accessible. To do this, click **View published**.
   1. Disable **Publication**.

#### See also: {#see-also}

* [Embedding public objects](../security/embedded-objects.md)