Creating application API for WorkZone Mobile app clients
For Single Sign-on experience using the WorkZone Mobile app, you need to setup a separate application registration, and then use the Client ID of this application registration in the Intune application configuration policy.
For detailed explanation, see Microsoft article Configure an app to access a web API - Microsoft identity platform.
Register the application API
See Microsoft article 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 in the same tenant as your WorkZone web application proxy is created.
- Click New registration.
- Specify the following settings:
- Name: Enter a name of your WorkZone Mobile app API. For example: WorkZoneMobileAppAPI.
- Supported account type: Accounts in this organizational directory only (Single tenant)
- Redirect URI: Leave empty. You will add it later.
- Click Register.
Add a redirect URI
See Microsoft quickguide on adding a redirect URI for the detailed steps.
- Click App registrations, and select the WorkZone Mobile application you have created in the previous step.
- Under Manage, click Authentication > Add a platform.
- Add the needed platforms and specify the following settings:
- Platform: Web.
- Redirect URIs: enter the redirect URI in the following format "
https://[your workzone-url]/oauth2/signin-oidc
". For example: https://test.workzone-rd.dk/oauth2/signin-oidc. - Platform: iOS/macOS.
- Bundle ID: Enter
dk.kmd.workzone.intune
. The Redirect URI will be generated automatically.
- Bundle ID: Enter
- Android platform is currently not supported.
Add API permissions
See Microsoft quickguide on how to add API permissions for the detailed steps.
- Under Manage, select API permissions > Add a permission.
- On the Microsoft APIs tab, click Microsoft Graph > Delegated permissions.
- Select the following permissions:
Directory.AccessAsUser.All
Directory.Read.All
Group.Read.All
User.Read
User.Read.All
User.ReadBasic.All
- Click Add permissions.
- On the APIs my organization uses tab, find and select your WorkZone web proxy app.
- Click Delegated permissions.
- Select
user.impersonation
permission, and click Add permissions.
Configure tokens
- Under Manage, select Token configurations > Add optional claim.
- Specify the following settings:
- Token type: ID.
- Claim: upn.
- Click Add.