# Recover your Patch My PC Cloud Company

*Applies to: Patch My PC Cloud*

To prevent access issues to your Patch My PC (PMPC) Cloud company, we highly recommend granting at least two users the [Full Admin with Access Management](https://docs.patchmypc.com/patch-my-pc-cloud/manage/manage-settings/manage-cloud-users/cloud-user-roles-reference) user role

{% hint style="info" %}
**Note**

If you only have one user assigned the Full Admin with Access Management role, the [You currently have only one user with Access Management privileges](https://docs.patchmypc.com/patch-my-pc-cloud/troubleshoot/users/you-currently-have-only-one-user-with-access-management-privileges-error-in-cloud) banner is displayed.
{% endhint %}

However, if you have not done this and the only user with this role leaves your company, you will no longer be able to manage both existing and new users within your PMPC Company.

Your only option is to attempt to recover your company, which involves providing us with specific details from the same Entra ID tenant as your PMPC Company to confirm your identity and validate your request. If successful, the user account performing the recovery will be granted the Full Admin with Access Management role.

{% hint style="info" %}
**Note**

See the [Creating an App Registration in Entra ID](https://docs.patchmypc.com/patch-my-pc-cloud/technical-references/entra-id-reference/create-an-app-registration-in-entra-id) process for details on how to create and obtain these values.
{% endhint %}

{% hint style="warning" %}
**Important**

We provide the functionality to disable a PMPC company from being recovered. However, we do not display and enable this by default because if it's enabled and you lose access to your company for whatever reason, neither of us can regain access to that company. This means you'll lose everything and need to create a new company and reconfigure it to match the old one. If you really want to enable this feature, please \
[open a support case](https://patchmypc.com/technical-support).
{% endhint %}

### Requirements

The user performing the recovery process does not need to be an existing user in the PMPC Company being recovered.

However, to verify the ID of the user performing the recovery (who must have the **Application Administrator** role or higher), and ensure the person performing the action is an administrator of the company, we ask them to create various objects in the same Entra ID tenant as the PMPC Company being retrieved.

Once created, the values of these new objects and other existing objects need to be entered into our **Claim Ownership** wizard.

Although a user with these privileges can complete the Entra ID process and provide the required values to the user performing the recovery, we recommend that the same person creating the required objects perform the recovery in PMPC Cloud to avoid sharing the secrets with another user."

### Recovering a Company

To recover a PMPC Company:

1. If the user attempting the recovery is an existing user and is already logged in, they must sign out of any portal sessions for that company.
2. Navigate to <https://portal.patchmypc.com/>

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FdWLlWX1sb6iCWbF8Rwcs%2Fimage.png?alt=media&#x26;token=06a5769b-f7ab-4eb5-865e-317a61ee7384" alt="Navigating the sign in page" width="563"><figcaption></figcaption></figure>

3. Click **Sign In** if the user attempting the recovery can sign in to multiple companies in PMPC Cloud.
4. Click **Sign Up** if any of the following applies to the user attempting recovery:
   1. The user only belongs to a single company i.e. the account is not used to manage multiple companies in PMPC Cloud.
   2. The user has not signed into the portal before and is not associated with an existing PMPC Cloud company.
5. On the **Select the Company You Want to Sign In To** screen, click **Recover Company**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FQc2NhIl57jknEUuM76s0%2Fimage.png?alt=media&#x26;token=bfe83ff0-1c73-43ce-ba93-227e8605624f" alt="Clicking &#x27;Recover Company&#x27;" width="563"><figcaption></figcaption></figure>

The **Claim Ownership** wizard starts.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FlpYTM2Nn7bZ71yhJgutE%2Fimage.png?alt=media&#x26;token=f89befdd-92c1-41d5-8488-4cf3588346d2" alt="&#x27;Claim Ownership&#x27; wizard" width="563"><figcaption></figcaption></figure>

6. From the **Company to Claim** dropdown, select the company you want to recover.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FHlF4FaFIJUJbZj4IZLYT%2Fimage.png?alt=media&#x26;token=2a6d8ce6-68d4-470a-9579-24d1283bb9bf" alt="&#x27;Company to Claim&#x27; dropdown" width="563"><figcaption></figcaption></figure>

The last five characters of the **Entra ID** to which your PMPC Company belongs are shown.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FUDwGL97sUMNaOMmDAAcf%2Fimage.png?alt=media&#x26;token=e6c84b76-1b3e-4aca-8fe1-a6eb6ebae081" alt="Last five characters of the Entra ID to which your PMPC Company belongs are shown." width="563"><figcaption></figcaption></figure>

7. Using the [Creating an App Registration in Entra ID](https://docs.patchmypc.com/patch-my-pc-cloud/technical-references/entra-id-reference/create-an-app-registration-in-entra-id) process, verify that the last five characters of the Entra ID match the last five characters of the **Directory (tenant) ID**.\
   \
   If they match, continue.\
   \
   If they don’t match, you are looking in the wrong Entra ID tenant and the ownership process will fail with the [Error - Claim Ownership Failed.](https://docs.patchmypc.com/patch-my-pc-cloud/troubleshoot/company/error-claim-ownership-failed-when-trying-to-recover-a-cloud-company)
8. Continue following the [Creating an App Registration in Entra ID](https://docs.patchmypc.com/patch-my-pc-cloud/technical-references/entra-id-reference/create-an-app-registration-in-entra-id) process to create the relevant App Registration in your Entra ID tenant.\
   \
   From this process, you are going to need the following values:<br>

   • Object ID\
   • Application (client) ID for the PMPC Recovery App Registration\
   • PMPC Recovery client secret (the Entra ID App Registration Secret value).
9. Copy the following values from the [Creating an App Registration in Entra ID](https://docs.patchmypc.com/patch-my-pc-cloud/technical-references/entra-id-reference/create-an-app-registration-in-entra-id) process to their respective fields of the **Claim Ownership** wizard:

{% hint style="warning" %}
**Important**

You cannot use an App Registration that was created more than 72 hours ago to perform a company recovery. If you have an existing App Registration older than this, you must create a new one before continuing.

After creating a new App Registration, we recommend waiting up to 30 minutes before using it for a company recovery. This allows time for the App Registration to fully propagate and become available across Microsoft Entra ID and Microsoft Graph services.
{% endhint %}

| Entra ID Value                                                 | Claim Ownership field |
| -------------------------------------------------------------- | --------------------- |
| Object ID                                                      | Object ID             |
| Application (client) ID for the PMPC Recovery App Registration | Client ID             |
| PMPC Recovery client secret.                                   | Secret                |

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FAaaiR8Kh5uYp3sjd5PjB%2Fimage.png?alt=media&#x26;token=cb173e91-3eda-42f2-903b-73c78640eedd" alt="Entering values into the &#x27;Claim Ownership&#x27; screen" width="563"><figcaption></figcaption></figure>

10. Click **Continue**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FWRqasUzW3vLU85Ec07mF%2Fimage.png?alt=media&#x26;token=c4d87acd-6338-4c15-9ebf-984b6c706eea" alt="Clicking &#x27;Continue&#x27;" width="563"><figcaption></figcaption></figure>

11. If the user performing the recovery is an existing user within the PMPC Company, go to Step 15.
12. If the user performing the recovery is not an existing user within the PMPC Company, they will see the **User Info** page.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FhqCdHiViWa9BwzxRDLmK%2Fimage.png?alt=media&#x26;token=288357ad-8a54-4cb8-855f-3c2efe6629ac" alt="&#x27;User Info&#x27; page" width="563"><figcaption></figcaption></figure>

13. Complete the **First Name** and **Last Name** fields, which will be used to create the new account and assign them the **Full Admin with Access Management** role if the recovery is successful.

14. Review the **Terms and conditions** and if you are happy, click to check the **Accept all Terms and conditions** checkbox, then click **Continue**.<br>

    <figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FAKRucuFlcux84NTrhLKn%2Fimage.png?alt=media&#x26;token=f03d1971-f39c-45d8-a4f1-442d5b30df29" alt="Checking the &#x27;Accept all Terms and conditions&#x27; checkbox, then clicking &#x27;Continue&#x27;." width="563"><figcaption></figcaption></figure>

15. The supplied information is checked.\
    \
    If the recovery process fails, see the **Resolution** section of the [Error – Claim Ownership Failed](https://docs.patchmypc.com/patch-my-pc-cloud/troubleshoot/company/error-claim-ownership-failed-when-trying-to-recover-a-cloud-company) article for troubleshooting help.\
    \
    If the recovery process is successful, the **Ownership Granted** popup is displayed.<br>

    <figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FwlXfQHG59DFutSE07AqD%2Fimage.png?alt=media&#x26;token=6c53b77b-b5b3-420f-9de5-579d56d0401a" alt="&#x27;Ownership Granted&#x27; popup" width="503"><figcaption></figcaption></figure>

{% hint style="danger" %}
**Important**&#x20;

You have three attempts to recover a company. If recovery fails after the third attempt, you will need to wait 12 hours before you can attempt recovery again.
{% endhint %}

16. Click **Close** to complete the recovery process and display the **App Catalog** page of the recovered company.<br>

    <figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2Fx6Eg1cUrxeIxxcXwM6tu%2Fimage.png?alt=media&#x26;token=a069dab8-7c3f-4379-af02-7692f94b4df5" alt="&#x27;App Catalog&#x27; page of the recovered company " width="563"><figcaption></figcaption></figure>

    \
    If you navigate to the **Users** node, you will see that the account used to perform the recovery process has been created (if applicable) and assigned the **Full Admin with Access Management** role.<br>

    <figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F1n1JBv5MwGecV0EY4sRu%2Fimage.png?alt=media&#x26;token=fbf8e6b1-f5b0-4881-b4d7-03ce11d05564" alt="&#x27;Users&#x27; node showing the user account used to perform the recovery process has been created (if applicable) and assigned the &#x27;Full Admin with Access Management role&#x27;." width="563"><figcaption></figcaption></figure>

    \
    If you navigate to the **Events** node, you will see that the **Company Ownership Approved for <*****user\_name*****>** event confirming the name of the user who performed the recovery process.<br>

    <figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FfDvd79dwQ0NPYzm0XncM%2Fimage.png?alt=media&#x26;token=059a4bf2-6634-4a5b-9d16-71361abfb84f" alt="&#x27;Events&#x27; node showing the &#x27;Company Ownership Approved for <user_name>&#x27; event confirming the name of the user who performed the recovery process. " width="563"><figcaption></figcaption></figure>

    \
    The previous owner will also receive an email with the subject **Access Recovered to “PMPC\_<*****company\_name*****>”**, containing details of who performed the recovery and when.

{% hint style="info" %}
**Note**

See [Example Account Recovery Email](https://docs.patchmypc.com/patch-my-pc-cloud/technical-references/cloud-email-reference/example-cloud-account-recovery-email) for more details and an example of the email.
{% endhint %}

{% hint style="warning" %}
**Important**

Once you have successfully completed the recovery process, to avoid potential security issues and prevent unwanted re-use of these objects, you should follow the [Deleting an App Registration in Entra ID](https://docs.patchmypc.com/patch-my-pc-cloud/technical-references/entra-id-reference/delete-an-app-registration-in-entra-id) process to delete the recovery objects created in your Entra ID.
{% endhint %}
