========
Licenses
========

Your license determines the number of users and channels available to your instance.

Licenses are issued for their designated contract period. New licenses will be issued by Anaconda at the time of renewal.

Obtaining a license
===================

You can get a new license or upgrade an existing license by `contacting the Anaconda sales team <https://www.anaconda.com/contact>`_ or one of our OEM partners. 

Enabling your license
=====================

Package Security Manager prompts you to enter your license on your initial login to the application. Once a valid license is entered, you are directed to the dashboard.

.. thumbnail:: ../img/emptydash.png       
   :align: center

.. _view_license:

Viewing your license
====================

To view your license, select |license| **License** from the left-hand navigation.

    .. thumbnail:: ../img/viewlicense.png 
       :align: center

You will be presented with the License Details page:

.. thumbnail:: ../img/license.png       
   :align: center

.. _update-license:

Updating your license
=====================

If you obtain a new license, you'll need to update your license by completing the following steps:

#. Select |license| **License** from the left-hand navigation.
#. Click **Upgrade License** in the upper-right corner.
#. Copy and paste your new license into the field, then click **Upgrade**.

Understanding licensing limitations
====================================

A license will limit you to a certain number of users/workers. These limitations are used to track your usage of resources, such as the number of users in your Package Security Manager instance. 

Banners at the top of Package Security Manager will inform you of any limits you are reaching or have already passed. For example, if your user count exceeds its limit, you may receive a banner like the following:

.. thumbnail:: ../img/licenselimit.png       
   :align: center

.. note::

    Package Security Manager user account limitations are triggered by the first login of a new user, *not* from the creation of that user's account in Keycloak.

License notifications
=====================

Package Security Manager notifies you when you approach or exceed the limits of your license, when your license is about to expire, or if your license is expired. If you exceed the limits of your license, *you won't be able to use most of Package Security Manager's features*. 

Usually, you're not allowed to exceed the limits of your license, as you would get a warning. This does not apply to the creation of users. You can create users *without limit*, but you will not be able to use Package Security Manager's features once you exceed your license's allowed number of users. 

You can :ref:`update your license <update-license>` to add more users or channels, or `manage your users <https://server-docs.anaconda.com/en/latest/admin/Keycloak_config/index.html>`_ and `channels <https://server-docs.anaconda.com/en/latest/user/channel.html>`_ to keep within the limitations of your license.


.. |license| raw:: html

    <svg class="inline" width="1.2em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M448 464H224v32c0 5.5-1 10.9-2.7 16H448c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L402.7 18.7C390.7 6.7 374.5 0 357.5 0H192c-35.3 0-64 28.7-64 64v71.1l.1-.1c1.5-.7 4-2 6.6-3c13.6-5.5 28.3-5.4 41.3-.5V64c0-8.8 7.2-16 16-16H352v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16zM109.2 161.6c-10-4.1-21.5-1-28.1 7.5L70.6 182.6c-1.3 1.7-3.2 2.7-5.2 3l-16.9 2.3c-10.7 1.5-19.1 9.9-20.5 20.5l-2.3 16.9c-.3 2.1-1.4 4-3 5.2L9.1 241.1c-8.5 6.6-11.6 18.1-7.5 28.1L8 285c.8 1.9 .8 4.1 0 6.1L1.6 306.8c-4.1 10-1 21.5 7.5 28.1l13.5 10.5c1.7 1.3 2.7 3.2 3 5.2l2.3 16.9c1.5 10.7 9.9 19.1 20.5 20.6L64 390.2V496c0 5.9 3.2 11.3 8.5 14.1s11.5 2.5 16.4-.8L128 483.2l39.1 26.1c4.9 3.3 11.2 3.6 16.4 .8s8.5-8.2 8.5-14.1V390.2l15.5-2.1c10.7-1.5 19.1-9.9 20.5-20.6l2.3-16.9c.3-2.1 1.4-4 3-5.2l13.5-10.5c8.5-6.6 11.6-18.1 7.5-28.1L248 291c-.8-1.9-.8-4.1 0-6.1l6.5-15.8c4.1-10 1-21.5-7.5-28.1l-13.5-10.5c-1.7-1.3-2.7-3.2-3-5.2l-2.3-16.9c-1.5-10.7-9.9-19.1-20.5-20.5l-16.9-2.3c-2.1-.3-4-1.4-5.2-3l-10.5-13.5c-6.6-8.5-18.1-11.6-28.1-7.5L131 168c-1.9 .8-4.1 .8-6.1 0l-15.8-6.5zM64 288a64 64 0 1 1 128 0A64 64 0 1 1 64 288z"/></svg>