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.
The Warehouse Management mobile app supports the following types of user-based authentication:
- Username/password authentication (recommended)
- Device code flow authentication (not recommended)
Important
Microsoft strongly recommends that you use username/password authentication, combined with brokered authentication, for all new and existing deployments. Device code flow is inherently more vulnerable to phishing attacks because a threat actor can trick a user into entering a legitimate device code on the user's behalf, and Microsoft Entra ID has no reliable way to verify that the person entering the code is signing in from the device that generated it. Starting July 1, 2026, Microsoft Entra ID security automatically blocks device code flow in new tenants—including new tenants that are created for testing. Existing tenants aren't automatically affected unless they already have security defaults enabled. If your environment still requires device code flow (for example, for legacy scripts or test scenarios that can't yet be updated), see Device code flow authentication for information about how it can be enabled, and update your setup to use username/password or brokered authentication as soon as possible.
All Microsoft Entra ID accounts that are used to sign in must be granted only the minimum set of permissions that they require to perform their warehousing tasks. Permissions should be strictly limited to warehouse mobile device user activities. Never use an admin account to sign in to devices.
Scenarios for managing devices, Microsoft Entra ID users, and mobile device users
The Warehouse Management mobile app uses Microsoft Entra ID to authenticate with Dynamics 365 Supply Chain Management. Choose one of two scenarios for managing Microsoft Entra ID accounts. In both scenarios, each warehouse worker has a warehouse worker record in the Warehouse management module with one or more mobile device user accounts.
Use one Microsoft Entra ID user account per device
In this scenario, each mobile device has its own Microsoft Entra ID account. Workers don't need individual Microsoft Entra ID accounts.
It works like this:
- The admin configures the app with username/password authentication (recommended) or device code flow authentication by using the device's Microsoft Entra ID account.
- After the app authenticates, workers sign in by using their mobile device user account credentials (user ID and password).
- When a worker signs out, the app stays authenticated with Supply Chain Management and shows the sign-in page for the next worker.
This approach works best when multiple workers share devices at a location.
Use one Microsoft Entra ID user account per worker
In this scenario, each worker has their own Microsoft Entra ID account linked to their warehouse worker record in Supply Chain Management.
It works like this:
- The worker signs in with their Microsoft Entra ID credentials.
- If a default user ID is configured for the worker's warehouse worker account, this single sign-in authenticates the app and signs them in as a worker in one step.
- The same Microsoft Entra ID session can be shared across other apps on the device (such as Microsoft Teams or Outlook).
This approach supports single sign-on (SSO) and is best when workers use dedicated devices or when you need tighter identity controls.
Username/password authentication
When you use username/password authentication, each human worker must enter the Microsoft Entra ID username and password associated either with the device or with themselves (depending on the authentication scenario you're using). They might also need to enter a mobile device user account ID and password, depending on their warehouse worker record setup. This authentication method supports single sign-on (SSO), which also enhances the convenience of mobile mass deployment (MDM).
Microsoft recommends that you combine username/password authentication with brokered authentication. A broker, such as Microsoft Authenticator, Intune Company Portal, or the Windows Web Account Manager (WAM), lets you take advantage of more sophisticated and phishing-resistant sign-in mechanisms, including:
- Shared device mode – Lets multiple workers share the same Android or iOS device while each worker's Microsoft Entra ID session is fully signed out and replaced when they sign out, without requiring a separate Microsoft Entra ID account per device. Learn more in Overview of shared device mode.
- QR code and PIN sign-in – Lets workers sign in quickly on shared devices by scanning a QR code and entering a PIN, instead of typing a full username and password every time. Learn more in Set up QR Code and PIN Authentication in Android App and Set up QR Code and PIN Authentication in iOS App.
- Windows Web Account Manager (WAM) – Uses the native Windows broker and primary refresh tokens (PRT) to provide fast, secure sign-in on Windows devices. Learn more in Operating system brokers on Windows (WAM) and Microsoft Entra joined shared devices on Windows.
These mechanisms reduce the risk of phishing and credential theft, because the worker never has to manually enter or expose a code that a threat actor could intercept and use elsewhere.
Device code flow authentication
Important
Microsoft doesn't recommend device code flow authentication. This method is a frequent target of phishing attacks, because a threat actor can ask a victim to sign in with a device code that the attacker generated, and then use the resulting token to access the victim's account from the attacker's own device. Starting July 1, 2026, Microsoft Entra ID security defaults block device code flow by default in new tenants. This behavior commonly affects new tenants that are created for testing purposes—if you create a new tenant to test the Warehouse Management mobile app, expect device code flow to be blocked by default. Existing tenants aren't automatically affected unless they already have security defaults enabled. Use username/password authentication combined with brokered authentication instead.
If your environment still depends on device code flow (for example, because you're using legacy test scripts or workflows that aren't updated yet), an admin can choose to unblock device code flow for that tenant by disabling security defaults. Disabling this protection lowers the tenant's overall security posture and increases exposure to identity-related attacks, so treat it strictly as a temporary measure while you update your setup, scripts, and workflows to use username/password or brokered authentication. For information about security defaults, see Microsoft Entra security defaults.
When you use device code authentication, the Warehouse Management mobile app generates and shows a unique device code. The admin who is setting up the device must then enter this device code into an online form, together with the credentials (name and password) for a Microsoft Entra ID user account that represents either the device itself or the human worker who is signing in (depending on how the admin implements the system). In some cases, depending on how the Microsoft Entra ID user account is configured, an admin might also have to approve the sign-in. In addition to the unique device code, the mobile app shows the URL where the admin must enter the code and the credentials for the Microsoft Entra ID user account.
If you must use device code authentication, be aware of the following extra requirements and restrictions:
- Create a unique Microsoft Entra ID user account for each device or human worker. In addition, strictly limit these accounts so that they can perform only warehouse mobile device user activities.
- While a worker is signing in by using the Warehouse Management mobile app, the app shows a generated device code. This code expires after 15 minutes and is then hidden by the app. If the code expires before sign-in is completed, the worker must generate a new code by selecting Connect again in the app.
- Devices are automatically signed out if they're not used or accessed for 90 days. Signed out devices must be reauthenticated before they can be used again. Learn more in Refresh tokens in the Microsoft identity platform.
- Single sign-on (SSO) isn't supported when you use device code flow authentication together with a mobile mass deployment (MDM) system (such as Intune) to distribute the Warehouse Management mobile app. You can still use an MDM system to deliver the app to each mobile device and deliver a
connections.jsonfile that sets up connections using device code. The only difference is that workers must manually sign in when they start to use the app. (This step is required only once.)
Manually create an application registration in Microsoft Entra ID
The Warehouse Management mobile app uses a Microsoft Entra ID application registration to authenticate and connect to your Supply Chain Management environment. You can use a global application that's provided and maintained by Microsoft, or you can register your own application in Microsoft Entra ID by following the procedure in this section.
Important
Use the global application if possible. It's easier to set up and maintain, and it supports most scenarios, including Microsoft Entra Conditional Access. You only need a manually created application registration if you have specific requirements that the global application doesn't meet (for example, because you're using certain on-premises environment configurations).
If you're able to use the global application, you can skip this section. For more information about how to use the global application, see Install the Warehouse Management mobile app. If you require a manual application registration, continue with this section.
The following procedure shows one way to register an application in Microsoft Entra ID. For detailed information and alternatives, use the links after the procedure.
In a web browser, go to https://portal.azure.com.
Enter the name and password of the user who has access to the Azure subscription.
Use the search field at the top of the page to find and open the Microsoft Entra ID service.
Make sure that you're working with the instance of Microsoft Entra ID that's used by Supply Chain Management.
On the left navigation pane, expand Manage and select App registrations.
On the toolbar, select New registration to open the Register an application wizard.
Enter a name for the application, select the Accounts in this organizational directory only option, and then select Register.
Your new app registration opens. Make a note of the Application (client) ID value, because you need it later. This ID is referred to later in this article as the client ID.
In the Manage list, select Authentication.
On the Authentication page for the new app, open the Settings tab, set Allow public client flows to Enabled, and select Save.
Open the Redirect URI configuration tab and select Add redirect URI.
In the dialog, select Mobile and desktop applications.
Set the input field to the following value, where {clientId} is the client ID that you copied earlier in this procedure:
ms-appx-web://microsoft.aad.brokerplugin/{clientId}Select Configure to save your settings and close the dialog to return to the Authentication page, which now shows your new platform configurations.
On the Redirect URI configuration tab, select Add redirect URI.
In the dialog, select Android. Then set the following fields:
Package name – Enter the following value (case sensitive):
com.Microsoft.WarehouseManagementSignature hash – Enter the following value:
hpavxC1xAIAr5u39m1waWrUbsO8=
Select Configure to save your settings and close the dialog to return to the Authentication page, which now shows your new platform configurations.
On the Redirect URI configuration tab, select Add redirect URI.
In the dialog, select iOS / macOS.
Set the Bundle ID field to the following value:
com.microsoft.WarehouseManagementSelect Configure to save your settings. Close the dialog to return to the Authentication page, which now shows your new platform configurations.
On the left navigation pane, expand Manage and select API permissions.
Select Add a permission.
In the Request API permissions dialog, on the Microsoft APIs tab, select the Dynamics ERP tile and then the Delegated permissions tile. Under CustomService, select the CustomService.FullAccess checkbox. Finally, select Add permissions to save your changes.
Use the search field at the top of the page to find and open the Microsoft Entra ID service.
On the left navigation pane, expand Manage and select Enterprise applications. Then, in the new Manage list, select All applications.
In the search form, enter the name that you entered for the app earlier in this procedure. Confirm that the Application ID value for the app matches the client ID that you copied earlier. Then select the link in the Name column to open the properties for the app.
On the left navigation pane, expand Manage and select Properties.
Set the Assignment required? option to Yes and the Visible to users? option to No. Then select Save on the toolbar.
On the left navigation pane, expand Manage and select Users and groups.
On the toolbar, select Add user/group.
On the Add Assignment page, select the link under the Users heading.
In the Users dialog, select each user that you use to authenticate devices with Supply Chain Management.
Select Select to apply your settings and close the dialog. Then select Assign to apply your settings and close the Add Assignment page.
In the Security list, select Permissions.
Select Grant admin consent for <your tenant>, and grant admin consent on behalf of your users. If you lack the necessary permissions, return to the Manage list, open Properties, and set the Assignment required? option to False. Each user can then provide consent individually.
For more information about how to register an application in Microsoft Entra ID, see the following resources:
For instructions that show how to use Windows PowerShell to register an application in Microsoft Entra ID, see Use Azure PowerShell to create a service principal with a certificate.
For complete details about how to manually register an application in Microsoft Entra ID, see the following articles:
Set up employee, user, and warehouse worker records in Supply Chain Management
Before workers can sign in by using the mobile app, each Microsoft Entra ID account that you assign to the enterprise app in Azure must have a corresponding employee record, user record, and warehouse worker record in Supply Chain Management. For information about how to set up these records, see Mobile device user accounts.
Single sign-on
Single sign-on (SSO) lets workers sign in to the Warehouse Management mobile app without entering a password. It works by reusing credentials from another app on the device, such as Intune Company Portal, Microsoft Authenticator, or Microsoft Teams.
Note
SSO requires username/password authentication. It doesn't work with device code flow.
Enable SSO
To enable SSO, configure brokered authentication by using one of the following methods:
- Manual connection setup – Enable the Brokered Authentication option on the app's Edit connection page.
- JSON file or QR code – Include
"UseBroker": truein your connection configuration.
Prerequisites for SSO
The following table lists the broker apps that must be installed on a device for SSO to work:
| Platform | Required broker app |
|---|---|
| Android | Intune Company Portal or Microsoft Authenticator |
| iOS | Microsoft Authenticator |
| Windows | The worker must have a work account configured on the device |
Important
- To use mobile mass deployment (MDM), you must enable SSO.
- The Warehouse Management mobile app supports shared device mode on Android and iOS. Shared device mode lets multiple workers use the same device while keeping each worker's Microsoft Entra ID session fully isolated and signed out when they sign out. Learn more in Overview of shared device mode.
- For a faster sign-in experience on shared devices, workers can also use QR code and PIN sign-in instead of typing a full username and password. Learn more in Set up QR Code and PIN Authentication in Android App and Set up QR Code and PIN Authentication in iOS App.
Remove access for a device that uses user-based authentication
If a device is lost or compromised, revoke its access to Supply Chain Management immediately. Disabling the associated Microsoft Entra ID user account revokes access for all devices that use that account. This limitation is why the one account per device approach is recommended. It lets you isolate and revoke access for a single device without affecting others.
To revoke access, follow these steps:
- Sign in to the Azure portal.
- On the left navigation pane, select Microsoft Entra ID, and ensure that you're in the correct directory.
- In the Manage list, select Users.
- To open the user's profile, find the user account associated with the device code, and select the name.
- On the toolbar, select Revoke sessions to revoke the user account's sessions.
Note
Depending on how you set up your authentication system, you might also want to change the user account's password or completely disable the user account.