# Managed mappings

{% hint style="info" %}
This policy is applicable to version 2.0 and above
{% endhint %}

## Policy description

By using the feature Managed Mappings (policy name `"Sharepoint Sites"`), you can map specific SharePoint sites and libraries to your KONNEKT. You can additionally define drive letters to those mappings.

{% hint style="info" %}
If enabled, this setting will map drives regardless of a users permissions.&#x20;
{% endhint %}

To add mappings, go to the policy and click on **Show\...**

![](https://2727108687-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8zLVuKYctMIUr68_fs%2F-MhNQTpjkROWzLUq9RQO%2F-MhNYGTgWW-aPhfM96Qs%2F2021-08-18%2009_44_27-192.168.2.50%20-%20Remote%20Desktop%20Connection.png?alt=media\&token=6b14440b-ae53-4055-a0a5-2c1d7623d266)

![](https://2727108687-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2Fixp8y5zPxLHq8Qj7wxrz%2F2022-08-19%2011_17_20-LabServer%20%E2%80%8E-%20Remotedesktop.png?alt=media\&token=f0c8c49d-7068-4c9d-a45f-5fb3dfe8531f)

{% hint style="info" %}
Using this policy for drive-letter mapping will always map the default document library as root.

To map all libraries of one site you need to map the site and enable the policy [AddAllSharePointLibraries](https://docs.konnekt.io/configuration/auto-mapping#map-all-document-libraries)

If you specify a library in the URL, only this library will be directly mapped.&#x20;

This policy does not support folder mapping, for folder mapping please use **net use**  as described [here](https://docs.konnekt.io/configuration/assign-drive-letters#assign-drive-letters-to-other-folders-using-net-use).

We have a feature-request in the backlog to improve the flexibility of mappings in a future version of KONNEKT.
{% endhint %}

{% hint style="warning" %}
SharePoint **Subsites** are **currently not supported** with KONNEKT Managed Mappings. Please use Auto Mapping to use Subsites with KONNEKT, instead.

We have a feature-request in the backlog to improve the flexibility of mappings in a future version of KONNEKT.

Please also note [Microsoft's recommendations regarding subsites](https://learn.microsoft.com/en-us/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits#subsites), as subsites have limited scalability and can cause performance issues.
{% endhint %}

## **Policy definition**

**Policy name:** `Sharepoint Sites`&#x20;

**Syntax of site definition:**&#x20;

```
<sharepoint-url>[|<Name>[|<DriveLetter>[|<TenantName>[|<Favorite>]]]]
```

* <mark style="background-color:blue;">`<sharepoint-url>:`</mark> Your sharepoint site/library URL. Must be URL encoded (e.g. Spaces are represented by `%20`).\
  If you are mapping your root site (requires KONNEKT 2.7.0 or newer), please make sure to have a slash at the end of the <mark style="background-color:blue;">`<sharepoint-url>`</mark> .  Example:\
  Your root site: `https://contoso.sharepoint.com`\
  The Managed Mapping should look like this: `https://contoso.sharepoint.com/|RootSite|R:`
* `<Name>:` Name you choose for the mapped site. This name must be unique for each mapping.\
  \&#xNAN;*optional => value may be empty*
* `<DriveLetter>:` Drive letter for drive mapping.\
  \&#xNAN;*optional => value may be empty*
* `<TenantName>:` Microsoft365 tenant-name for the corresponding account that must be used to access this site. (\<TenantName>.onmicrosoft.com).\
  \&#xNAN;*optional => value may be empty*
* `<Favorite>:` Indicate if mapping shall be a KONNEKT favorite. You must run KONNEKT 2.2.1 or newer for this feature to work properly.\
  Possible values:\
  \- `FALSE` (default)\
  \- `TRUE`\
  \&#xNAN;*optional => value may be empty*

**Site mapping result:**

![](https://2727108687-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8zLVuKYctMIUr68_fs%2F-MhSSMouj-UbkZpQGnXD%2F-MhSVkSm0f_ANwwCiL_w%2F2021-08-19%2010_10_40-192.168.2.50%20-%20Remote%20Desktop%20Connection.png?alt=media\&token=3d7b5e2c-6104-4cd8-950c-2a0471935751)

**Drive mapping result:**

![](https://2727108687-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8zLVuKYctMIUr68_fs%2F-MhSSMouj-UbkZpQGnXD%2F-MhSUyyroUR533LcXaYZ%2F2021-08-19%2010_20_06-192.168.2.50%20-%20Remote%20Desktop%20Connection.png?alt=media\&token=ca5aec80-1ced-466f-aad8-65d82fe491fc)

## **Examples**

#### All libraries of a site

```
https://mytenant.sharepoint.com/sites/mysite
```

This will map the **default document library** of this site. The drive will be labeled as "mysite"

{% hint style="info" %}
To map all libraries you need to enable the policy [AddAllSharePointLibraries](https://docs.konnekt.io/configuration/auto-mapping#map-all-document-libraries)
{% endhint %}

#### Dedicated library of a site

```
https://mytenant.sharepoint.com/sites/mysite/Shared%20Documents|MySite Docs
```

This will add the "shared documents" library of the site "mysite". The Drive will be labeled "MySite Docs".

#### Assign a drive letter

```
https://mytenant.sharepoint.com/sites/mysite/Shared%20Documents|MySite Docs|M:
```

This will add the "shared documents" library of the site "mysite". The Drive will be labeled "MySite Docs". The network path will be mapped to drive M.

#### Map foreign tenant

```
https://foreignTenant.sharepoint.com/sites/mysite||X:|ForeignTenant
```

This will add all document libraries of the site "mysite", from the tenant "ForeignTenant.onmicrosoft.com". The network path will be mapped to drive X.&#x20;

The user must have an account configured in KONNEKT, that belongs to the Microsoft Entra ID (Azure AD) in the tenant "ForeignTenant".

#### Make mapping a KONNEKT favorite

```
https://mytenant.sharepoint.com/sites/mysite/Shared%20Documents|MySite Docs|||TRUE
```

This will add the "shared documents" library of the site "mysite". The Drive will be labeled "MySite Docs". It will be added as KONNEKT favorite.

## **There are several ways to apply the policy**

1. via GPO, see [settings via GPO](https://docs.konnekt.io/configuration/management-options/settings-via-gpo)
2. pushing policies via Intune, see [settings for Intune Managed Devices](https://docs.konnekt.io/configuration/management-options/setting-for-intune-managed-devices-1)
3. manually by adding the key in the registry under machine or user registry settings

{% hint style="warning" %}
We highly recommend to use 1. or 2., since this policy has several components.
{% endhint %}

## Manual setting in registry

{% hint style="info" %}
You do not need this, if you use GPO or Intune management.
{% endhint %}

The policy consists of two components in the registry:

1. **Value** (activate the feature)
2. **Key with value per mapping** (describe every single mapping)

#### **1. Value**

* **Value name:** `SharepointSites`
* **Value type:** `REG_DWORD`
* **Value data:** `1` (to activate the feature)
* Value **stored** in:
  * `HKEY_CURRENT_USER\SOFTWARE\Policies\GlueckKanja\Konnekt`\
    or
  * `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt`

#### **2. Key with value per mapping**

* **Key name:** `SharepointSites`
* Key **stored** in:
  * `HKEY_CURRENT_USER\SOFTWARE\Policies\GlueckKanja\Konnekt`\
    or
  * `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt`

Under this key, one value/data entry has to be generated per mapping:

* **Value name:** equals Value data
* **Value type:** `REG_SZ`
* **Value data:** see [Policy definition](#policy-definition).
* Value **stored** in:
  * `HKEY_CURRENT_USER\SOFTWARE\Policies\GlueckKanja\Konnekt\SharepointSites`\
    or
  * `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt\SharepointSites`
