> For the complete documentation index, see [llms.txt](https://docs.defguard.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defguard.net/2.2/using-defguard-for-end-users/mobile-client/instance-adding.md).

# Adding new Instance

In this guide, you will learn how to add Instance in mobile app.

If you are after the enrollment process, please follow [this guide](#adding-instance-in-defguard)

## Enrollment via external SSO

1. Go to your enrollment page. Click **Select** under "Enrollment process".<br>

   <figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/5MMfVCIHTswXBCQ9qLjh/chrome_yDm9p3U3RX.png" alt="" width="563"><figcaption></figcaption></figure>
2. In this example we use Google as OIDC provider so our button is "Sign in with Google". Your organization can use different OIDC provider.<br>

   <figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/nIOczrzmrNgIvHsDSb5W/image.png" alt="" width="563"><figcaption></figcaption></figure>
3. You will be redirected to your OIDC provider login page, please log in. After doing this, you will be redirected and shown a screen with **URL, Token and QR Code**.<br>

   <figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/HXNqJ5yJkUxZM7iKBUKi/chrome_uX7nvcTrjA.png" alt="" width="375"><figcaption></figcaption></figure>
4. Open Defguard Mobile on your smartphone
5. Click **Scan QR Code**

<figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/ecDaG8DcxS59Kk5TiBVf/defguard-mobile-add-instance.png" alt="" width="375"><figcaption></figcaption></figure>

6. Scan QR generated in step 3.
7. Enter the name of your device. For example "iPhone 11"
8. Confirm

{% hint style="info" %}
If you can't scan QR Code, select **Add Instance Manually** in **step 5** and enter URL and Token from **step 3**.
{% endhint %}

## Enrollment via Email

Find enrollment **Instance URL** and **Token** in your "Defguard user enrollment" email. It should look like this:

<figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/iztVWnGeX4ZCpSmvu8t3/brave_sDhXB25D0I.png" alt="" width="479"><figcaption></figcaption></figure>

Now proceed enrollment with your Client app.

## Adding Instance in Defguard

1. Log in to your Defguard account.
2. Go to **My Profile** tab and select **Devices** tab.

<figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/eKEOkHnnwGDmxOi8QhXk/defguard-myprofile-tab-devices-tab-marked.png" alt="" width="50%"><figcaption></figcaption></figure>

3. Click **Add new device** button.

<figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/eNlqa73Nl9pXR5I2Yh2A/defguard-devices-add-new.png" alt="" width="50%"><figcaption></figcaption></figure>

4. Click **Client Activation**.

<figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/R6q72ztgyFLtQeiMK527/client-activation.png" alt="" width="50%"><figcaption></figcaption></figure>

5. After that you will see a QR Code. **Do not close this screen**, we will need it in next step.

<figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/tRSaGw4VArqtFxixM7l9/client-activation-instance-configuration.png" alt="" width="50%"><figcaption></figcaption></figure>

6. Open **Defguard Mobile** on your smartphone
7. Click **Scan QR Code**

<figure><img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/ecDaG8DcxS59Kk5TiBVf/defguard-mobile-add-instance.png" alt="" width="375"><figcaption></figcaption></figure>

8. Scan QR generated in step 5.
9. Enter the name of your device. For example "iPhone 11"
10. Confirm

{% hint style="info" %}
If you can't scan QR Code, select **Add Instance Manually** in **step 7**, go back to the screen in **step 5**, click "Show advanced configuration", copy **URL** and **Token** and then enter them in **Defguard Mobile**.

<img src="https://content.gitbook.com/content/pE5yODhpiy5pT1XxY0BS/blobs/vIdpdUP7W22WHmu3RxN7/advanced-configuration.png" alt="" data-size="original">
{% endhint %}
