Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Connection settings tell the Warehouse Management mobile app which Microsoft Dynamics 365 Supply Chain Management environment to connect to, which legal entity to use, and how to authenticate. They're expressed in JavaScript Object Notation (JSON) format.
You use the same JSON code regardless of how you deliver it to your devices. To choose a delivery method, see Choose how to distribute connection settings.
Create a connection settings file or QR code
The JSON code must include a connection list that contains the individual connections that you need to add. After you create the JSON, you can save it as a file, deliver it through your mobile device management (MDM) provider, or generate a connection setup QR code that has the same content. Importing this JSON configures the app; it doesn't authenticate a worker.
The following table summarizes the parameters that you can specify for each connection. Required parameters are listed first, followed by optional parameters.
| Parameter | Description |
|---|---|
"ConnectionName" |
Specify the name of the connection setting. The maximum length is 20 characters. Because this value is the unique identifier for a connection setting, ensure that it's unique in the list. If a connection that has the same name already exists on the device, the settings from the imported file override it. |
"ActiveDirectoryResource" |
Specify the root URL of Supply Chain Management. |
"Company" |
Specify the legal entity in Supply Chain Management that you want the application to connect to. |
"AuthCloud" |
Specify the type of Microsoft Entra ID app registration to authenticate with:
|
"ActiveDirectoryClientAppId" |
(Optional.) Required only when you set "AuthCloud": "Manual". Specify the client ID of your custom app registration. Learn more in Create a custom application registration. |
"ConnectionType" |
(Optional.) Specify how the connection authenticates with the environment. If you don't specify a value, then
|
"PreferredAuthMethod" |
(Optional.) Set this parameter to "QRCode" to request Microsoft Entra ID QR code and PIN sign-in on Android and iOS/iPadOS only. QR code and PIN sign-in isn't supported on Windows. Use it with "ConnectionType": "UsernamePassword" and "UseBroker": false. It corresponds to setting QRCode to Yes on the Edit connection page of the Warehouse Management mobile app. This preference controls sign-in, not connection QR code import. It doesn't enable the method in Microsoft Entra ID or override tenant policies. For prerequisites, instructions, and a complete JSON example, go to QR code and PIN sign-in for the Warehouse Management mobile app. |
"UseBroker" |
(Optional.) This parameter applies only to the |
"DomainName" |
(Optional.) This parameter applies only to the "UsernamePassword" connection type. It allows you to implement a simplified sign-in process. If you don't set this field, workers must always enter their full Microsoft Entra ID user principal name (UPN) to sign in. A UPN has the form <user name>@<domain name>. If you specify the <domain name> part here, workers can sign in by entering only the <user name> part. (Even if you set the domain name here, workers can still sign in using their full UPN.) |
"ActiveDirectoryTenant" |
(Optional) Applies only when you set "AuthCloud": "Manual". Specify the Microsoft Entra ID domain name that you're using with the Supply Chain Management server. This value has the form https://login.windows.net/<your-Microsoft-Entra-ID-domain-name>. Here's an example: https://login.windows.net/contosooperations.onmicrosoft.com. Learn more about how to find your Microsoft Entra ID domain name in Locate important IDs for a user. |
Include client settings in the connection settings file or QR code
In addition to the ConnectionList object described in this article, the connection settings JSON file can also include a ClientSettings object, which provisions and locks app settings, such as the sign-in prompt and TLS version. Every delivery method applies it, and MDM always takes priority. Learn more in Client settings reference.
Example connection settings file
The following example shows a valid connection settings file that contains three connections: Connection1 uses the global application (no client ID is needed), Connection2 uses a custom app registration with brokered authentication, and Connection3 uses a custom app registration without brokered authentication.
{
"ConnectionList": [
{
"ConnectionName": "Connection1",
"ActiveDirectoryResource": "https://yourenvironment1.cloudax.dynamics.com",
"Company": "USMF",
"ConnectionType": "UsernamePassword",
"UseBroker": true,
"AuthCloud": "AzureGlobal"
},
{
"ConnectionName": "Connection2",
"ActiveDirectoryClientAppId": "aaaaaaaa-bbbb-ccccc-dddd-eeeeeeeeeeee",
"ActiveDirectoryResource": "https://yourenvironment2.cloudax.dynamics.com",
"Company": "USMF",
"ConnectionType": "UsernamePassword",
"UseBroker": true,
"AuthCloud": "Manual"
},
{
"ConnectionName": "Connection3",
"ActiveDirectoryClientAppId": "aaaaaaaa-bbbb-ccccc-dddd-eeeeeeeeeeee",
"ActiveDirectoryResource": "https://yourenvironment3.cloudax.dynamics.com",
"ActiveDirectoryTenant": "https://login.windows.net/contosooperations.onmicrosoft.com",
"Company": "USMF",
"ConnectionType": "UsernamePassword",
"UseBroker": false,
"DomainName": "contosooperations.onmicrosoft.com",
"AuthCloud": "Manual"
}
]
}
File name and location on each device
This section applies when you deliver the settings as a file. If you use MDM managed configuration or a QR code, the app stores the settings itself, and you can skip this section.
If you use the default name and location when you save the connection settings file on each device, the app automatically imports it, even during the first run after the app is installed. If you use a custom name or location for the file, the app user must specify the values during the first run. However, the app continues to use the specified name and location afterward.
The default file name is connections.json. The default file location depends on which type of device you're using:
- Windows:
C:\Users\<User>\AppData\Local\Packages\Microsoft.WarehouseManagement_8wekyb3d8bbwe\LocalState - Android:
Android\data\com.Microsoft.WarehouseManagement\files. Because of Android scoped storage limitations, external tools can't write to this path. Use MDM managed configuration or a QR code instead. - iOS: File sharing isn't supported. Use MDM managed configuration or a QR code instead.
Usually, the paths are automatically created after the first run of the app. However, you can manually create them if you must transfer the connection settings file to the device before installation.
Note
If you uninstall the app, the default path and its contents are removed.
How the app applies changes
Every time the app starts, it reimports the connection settings from their previous location to check for changes. The app updates only connections that have the same names as the connections in the connection settings file. User-created connections that use other names aren't updated.
You can't remove a connection by using the connection settings file.
Related information
- Install the Warehouse Management mobile app
- Choose how to distribute connection settings
- Client settings reference for the Warehouse Management mobile app
- Import connection settings from a QR code
- Mass deploy the mobile app with user-based authentication
- User-based authentication for the Warehouse Management mobile app
- Create a custom application registration