Azure Active Directory Server Connection

Azure Active Directory is a cloud-based identity and access management service provided by Microsoft Azure. It serves as a comprehensive solution for managing user identities, securing access to resources, and enabling single sign-on across various cloud applications and services.

Note: This feature can be accessed by Leapwork Admin only.

Add Connection

To add a connection, click the Add button and the following pop-up appears:

On the Add Connection pop-up window:

  1. Enter the title in the Title field. It should be unique.
  2. Enter the description in the Description field.
  3. From the Type drop-down, select the Azure Active Directory server option:

  4. Select Azure Active Directory Server and the following new fields appear:
    Note: To complete the Add Connection process, follow the next steps in the Azure portal (https://portal.azure.com/).
  5. Click the App Registration to create a new app registration.

  6. Enter the name in the Name field.

  7. Select the users from the Supported Account Types options.

  8. Click Register button.

  9. Click the Add a Redirect URI hyperlink on the Overview Section window of the new application:

  10. Click the Add a Platform option.

  11. Click Mobile and Desktop Applications button in Configure platforms field.

  12. Select the https://login.microsoftonline.com/common/oauth2/nativeclient checkbox.

  13. Click Configure button.

  14. On the API Permissions section:

    1. Click Add a Permission button.

    2. Select Microsoft Graph option.

    3. Select Application Permissions button.

    4. Select “User.Read.All”, “Directory.Read.All”, and “GroupMember.Read.All” in the Users checkbox.

    5. Select Delegate Permissions button.

    6. Add “Directory.Read.All”, and “User.Read” in the Users checkbox.

    7. Click the Add Permissions button.

  15. On the Certificates & Secrets section:

    1. Click Next Client Server button.

    2. Write a description in the Description field.

    3. Select an expiration date from the Expiration dropdown.

  16. Securely store the Secret Value for backup.

    Note: Please allow 5-10 minutes for the app registration changes to take effect. You may now proceed with the Add Connection process.

    The Instance and API URL fields are automatically filled for Azure Active Directory (AAD).

  17. Enter the tenant in Tenant field.

  18. Enter the client id in Client ID field.

  19. Enter the client secret in the Client Secret field.

    Note: The Tenant and Client ID are found in the Overview section of the application that has already been registered on the Microsoft Azure Portal. (https://portal.azure.com/#home)

    The Client Secret is generated from the Certificates & secrets section:
    Note: For more information about registering app in Microsoft Azure Portal please visit: https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app.
  20. Click the Test connection button to test the connection. The embedded browser will open. Enter the username and password. Click Ok to test the connection.

  21. Ensure that the Set this as default user directory checkbox is selected. Once the connection is tested, a success message will confirm that the connection has been successfully established.
  22. Click the Save & Continue button to save the details. Once your connection is saved a success message appears to let you know the connection is successful.

Once the connection is successfully saved, it would be added to the connections list.

Use the Edit or Delete buttons located next to the Add button to modify or remove the connection.