Creating a native API for WorkZone Mobile (Legacy)
Register the native API
Section titled “Register the native API”See Microsoft quickguide on how to register an app or a web API for the detailed steps.
- Log in to the Microsoft Azure portal.
- Click App registrations. It must be the same place as your WorkZone web app publication is created.
- Click New registration.
- Enter a Name for your WorkZone Mobile (Legacy) app. For example,
WorkZoneMobileNative. - Select appropriate supported account type**.**
- Click Register.
Add a redirect URI
Section titled “Add a redirect URI”See Microsoft quickguide on adding a redirect URI for the detailed steps.
- Under Configure platforms, select the needed platform type (Web, iOS/macOS, Android, Mobile and desktop applications).
- Provide your Redirect URI (URL of your WorkZone 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.workzone.intunefor Bundle ID. The Redirect URI will be generated automatically. - For Android: enter
dk.kmd.workzonefor Package name. The Redirect URI will be generated automatically.
- For Web: enter the redirect URI in the following format:
Add API permissions
Section titled “Add API permissions”See Microsoft quickguide on how to add API permissions for the detailed steps.
Add the following API permissions:
- Under Microsoft Graph:
Directory.AccessAsUser.AllDirectory.Read.AllDirectory.ReadWrite.AllGroup.Read.AllGroup.ReadWrite.AllUser.ReadUser.Read.AllUser.ReadBasic.All
- Under My APIs > <name of your hosted web app> (for example, My APIs > WorkZoneWebApp):
user.impersonation
Configure tokens
Section titled “Configure tokens”- Under Manage >Token configurations, click Add optional claim.
- Select ID as the Token type.
- Add upn claim.

