# Assign a subscription code to your master account

Assign a subscription code to your master account to prevent investors who don't have the subscription code from viewing the account's trading statistics or subscribing to the account.

If you want to protect multiple master accounts, assign a unique subscription code to each one.

{% hint style="info" %}
The **Subscription code** section may be displayed or hidden in the Web UI. This is controlled by the investment platform admin.
{% endhint %}

If you assign a subscription code to your master account that is hidden in the **Leaderboard**, investors can search for the account by its number, and then they must provide the code to view the account’s trading statistics and subscribe to the account.

If you assign a subscription code to your master account that is visible in the **Leaderboard**, your account is displayed to investors in the **Leaderboard**, however, they must provide the code to view the account's trading statistics and to subscribe to the account.

For more information on the visibility status of master accounts, refer to [Change your master account visibility on the Leaderboard](https://docs.b2copy.b2broker.com/user-guide/manage-master-and-investment-accounts/change-your-master-account-visibility-on-the-leaderboard).

To assign a subscription code to a master account:

{% stepper %}
{% step %}
In the main menu, expand the respective item, such as **B2COPY**, **MAM**, or **PAMM**, and then click **My Accounts** under the desired platform, if more than one is available.
{% endstep %}

{% step %}
Click the master account in the list.
{% endstep %}

{% step %}
In the account details, go to **Settings**.
{% endstep %}

{% step %}
In the **Subscription code** section, click **Add subscription code**.

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-a2dbe6374696a813dd9998ef4159ea3c28d32464%2Ffront-settings-subscription-code.png?alt=media" alt="Add a subscription code"><figcaption><p>Add a subscription code</p></figcaption></figure>
{% endstep %}

{% step %}
In the confirmation popup, click **Generate** to generate a new code.
{% endstep %}

{% step %}
To replace the previously generated code with a new one, click **Generate code**, and then click **Generate** in the confirmation popup.

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-f4ff55e43e795a40ba9f05b190bb7c71806a518b%2Ffront-settings-added-subscription-code.png?alt=media" alt="Generated subscription code"><figcaption><p>Generated subscription code</p></figcaption></figure>
{% endstep %}
{% endstepper %}

The generated code is masked with asterisks.

To view the generated code, click **View**.

To copy the code to the clipboard, click **Copy**.

To remove the code, click **Delete**, and then confirm the deletion in the displayed popup.
