Gå til indhold

Register WorkZone apps in Azure

Dette indhold er ikke tilgængeligt i dit sprog endnu.

WorkZone uses the Microsoft identity platform for identity and access management tasks. To set up a trust relationship between WorkZone and the Microsoft identity platform, the WorkZone application must be registered. This app registration is created by KMD during WorkZone installation, and an Enterprise application representing this app registration is created in the customer’s Entra ID tenant when first users access the WorkZone instance.

The WorkZone SharePoint and WorkZone Process modules require additional application registrations. These need to be created by the customer in their Entra ID tenant.

To create WorkZone Enterprise application, open the link provided by the WorkZone consultant. This link will redirect you to WorkZone, and you will need to consent for the required permissions on Entra ID.

Redirect URIs for the WorkZone application registration

Section titled “Redirect URIs for the WorkZone application registration”

WorkZone 2026.1.1 added new redirect URIs for WorkZone Client and WorkZone Configurator to your WorkZone app registration in Microsoft Entra ID. Apply them before you upgrade, or users will not be able to sign in afterwards.

WorkZone 2026.1 added a new redirect URI for WorkZone One to your WorkZone app registration in Microsoft Entra ID. Apply it, before you upgrade, or your users will not be able to sign in afterwards.

Get the latest version of the WorkZone app registration script (New-KmdWorkZoneIdentityApp.ps1) and run it against your app registration.

New Redirect URIs:

  • WorkZone One: https://<domain_name>/client/redirect
  • WorkZone Client: https://<domain_name>/app/client/redirect.htmlWorkZone Configurator: https://<domain_name>/app/configurator/redirect.html

See Microsoft article on adding a redirect URI.

An additional registration is needed to send emails from WorkZone Process. This registration will allow interaction with Exchange Online. Because the privileges that are granted are broad, the application access must be scoped down to one mailbox.

To create an application registration for WorkZone Process, run theNew-KmdWorkZoneExchangeApp.ps1 script.

The script uses the following parameters:

  • DisplayName: Display name of the Entra app.
  • TenantId: Entra Tenant ID.
  • IdentifierUriPrefix: Unique name prefix used for application registration Uri.
  • ExchangeOnlineAuthFlow: ClientCredential (recommended) or PublicClient.

The script will output a client (application) identifier, tenant ID, and a client secret that must be delivered to KMD.

After running the script:

  1. Inform KMD about the client (application) identifier, tenant ID, and a client secret that the script returns.
  2. The script also returns the following message:“Permissions for this App requires Admin Consent. Please go to Azure Portal and ‘Grant Permission’ for this App or go directly to this consent url and log in as an AAD Admin (ignore that the redirect in the end might not work)”. Follow the instructions in the message to grant Admin Consent to the WorkZone Process application.

Secure WorkZone Process application registration

Section titled “Secure WorkZone Process application registration”

The following parameters are required by the script:

  • wzpMailbox: The mailbox that the application should have access to.
  • wzpAppId: The application (client) ID of the WorkZone Process application registration.
  • groupName: Name of the Entra group that manages security for the application registration.

Register the WorkZone SharePoint application

Section titled “Register the WorkZone SharePoint application”

Follow these steps to register the WorkZone SharePoint application at Entra ID (this is a prerequisite for using the WorkZone SharePoint module to copy the documents from Microsoft SharePoint to WorkZone).

This is done using the New-KmdWorkZoneWZSPApp.ps1 script provided by KMD technicians.

Run the New-KmdWorkZoneWZSPApp.ps1 script, using the following parameters:

  • DisplayName: Display name of the AD app. For example, KMD WorkZone - WZSP.
  • IdentifierUri: Identifier URI of the AD app that is also used for updates (script re-runs)
  • TenantId: your Entra Tenant ID

Example:

.\New-KmdWorkZoneWZSPApp.ps1 `
-DisplayName 'KMD WorkZone – WZSP' `
-IdentifierUri 'api://5d3760f7-9e2f-4bf3-a318-b0ea87f66540/wzsp' `
-TenantId ‘5d3760f7-9e2f-4bf3-a318-b0ea87f66540’

Follow the procedure below to grant WorkZone SharePoint access to a specific SharePoint site. Update and run the NewSPSitePermission.ps1 script provided by KMD technicians to identify the correct SharePoint site ID and assign the required site permissions.

  1. Update the NewSPSitePermission.ps1 script using the following values:

    • Your tenant ID.
    • The client ID of the app registration created in the first step.
    • The Sharepoint site ID of the site that WorkZone SharePoint should use.
  2. To find the site and its site ID, call the following Microsoft Graph API endpoint:

    https://graph.microsoft.com/v1.0/sites/{sp_hostname}/

    where {sp_hostname} is the URL of your Sharepoint instance, for example contoso.sharepoint.com.

  3. After you have updated the scrip, run it. You must log in with an account that has SharePoint administrator permissions.

The script grants WorkZone SharePoint access to the specified site. The add-in can now only access files from that site.