Create a native API for WorkZone Mobile (New)

Register the native API

If your WorkZone Mobile (New) app is already registered as “WorkZoneMobileNative,” skip this step and proceed to Add a redirect URI.

  1. Log in to the Microsoft Azure portal.
  2. Click App registrations. It must be the same place as your WorkZone Mobile (New) publication is created.
  3. Click New registration.
  4. Enter a Name for your WorkZone Mobile (New) app. For example, KMDWorkZoneNative.
  5. Select appropriate supported account type.
  6. Click Register.

See Microsoft quickguide on how to register an app or a web API for the detailed steps.

Add a redirect URI

See Microsoft quickguide on adding a redirect URI for the detailed steps.

  1. Under Configure platforms, select the needed platform type (Web, iOS/macOS, Android, Mobile and desktop applications).
  2. Provide your Redirect URI (URL of your WorkZone Mobile (New) web app publication).
    • For Web: enter the redirect URI in the following format: https://<Your host>/oauth2/signin-oidc (replace <your host> with your host).
    • For iOS: enter dk.kmd.kmd-workzone.intune for Bundle ID. The Redirect URI will be generated automatically.
    • For Android: enter dk.kmd.kmd_workzone for Package name. The Redirect URI will be generated automatically.

Add API permissions

See Microsoft quickguide on how to add API permissions for the detailed steps.

  1. Make sure that the following API permissions are added:
    • Under Microsoft Graph: User.Read.
    • Under Microsoft Mobile Application Management: DeviceManagementManagedApps.ReadWrite.
    • Under My APIs > [name of your hosted web app] (for example, My APIs > KMDWorkZoneWebApp): user_impersonation.
    • Note: Grant admins consent for the permissions, where required.

      Tip: To quickly find a permission, type its title into the Select permissions search bar.
  2. Click Add permissions.

See Microsoft article Give your app access to the Intune Mobile App Management service.

Configure tokens

  1. Under Manage > Token configurations, click Add optional claim.
  2. Select ID as the Token type.
  3. Add upn claim.