StableN/ASyncedN/A

Microsoft CSP Integration Errors

Updated Nov 13, 20265 viewsView on usehalo.com

In this guide we will cover:

- Steps to Troubleshoot Microsoft CSP Errors

Related Guides:

When configuring the CSP integration, you may sometimes see error messages when attempting to import or connect. This guide will cover how to troubleshoot the most common ones.

If you have any issues with the CSP following this guide, please contact support for further assistance. 

Element of Integration
ErrorRelevant To
Solution
Tenants

Unable to authenticate Single Tenant Azure application in Halo and receives an error stating that the requested permissions do not match those setup against the application in Azure, or they are immediately redirected back to the Azure login screen after authorizing.

The permissions added to the Azure application are not correct. This is commonly setup incorrectly for the user_impersonation scope.

There are two very similar looking but actually different permissions to the partner centre. Make sure that the user_impersonation scope is for the Microsoft Partner Center, and has a description of 'Access Partner Center'.

The most reliable method to get the correct permissions is to search by the ID of the API. To do this click, 'Add a permission' within the App Registration, click 'APIs my organisation uses' and search using this ID: 'fa3d9a0c-3fb0-42cc-9193-47c7ecd2edbd'

Tenants

AADSTS7000119: Client Application '{Name of Multi Tenanted Azure Application}' with identifier '{Application ID}' is not allowed to be used by tenant '{Y}' with identifier of '{Tenant ID of Tenant Y}'

(Occurring when attempting to grant admin consent for a specific tenant)

The Tenant you are attempting to grant admin consent for does not have access to the multi-tenanted application you created. The application has restrictions on which tenants can access it.
In Azure, go to the app registration configuration of the multi-tenanted Azure Application. In 'Authentication (Preview)' > 'Supported Accounts', there is the ability to restrict which tenants have access to the application. It is most likely the case that either the tenant (Y) is not listed and/or it is not set to allow all tenants. 

The app registration will need to be updated to have the supported account types be set to 'Allow all tenants'. Or have this tenant (and any other tenants you would like to sync) added to the allowed tenants list.

Tenants
'Error - Forbidden' or customer records missing from the sync.
The account you authorised the Partner Centre connection with does not have access to customers or the Cloud Reseller Relationship has been requested/has expired.
All Tenants Missing: Log into the Partner Centre directly with the credentials you authorised with in Halo and try to load the 'Customer List' section. If it loads, this isn't the issue. If it doesn't, you need to modify this users permissions, log out and back in and check again.
Some Tenants Missing: Your Cloud Reseller Relationship is either missing or expired. Please review and try syncing again when the relationship has been re-established.
Tenants
Redirect URI specified does not match redirect configured
The redirect URI specified in the app registration has not been correctly configured
Please refer to the instructions and correct the Redirect URI within your Azure application(s)
Tenants
AADSTS90043
The partner tenant you are attempting to connect with is not provisioned in the authority selected. 
Refer to the "Authorizing the connection in Halo" section of this guide and ensure the "Authority" you have selected is the correct authority for your partner centre tenant. If you have multiple partner centre tenants in order to to account for tenants in different cloud environments, you will need to configure multiple connections (tenants) for the integration. Authority selection is available from v2.248+ of Halo, on versions prior to this only tenants provisioned in the Microsoft Graph Global Service are supported. 
Tenants
The application has not been authorized in the tenant. Applications must be authorized to access the customer tenant before partner delegated administrators can use them
You are attempting to grant admin consent for a tenant for which you do not have a native admin account.Grant admin consent using the method detailed in the 'Granting Admin Consent Without a Native Admin Account' section of this guide.
Licences
'Error - Forbidden'
The account you authorised the Partner Centre connection with does not have access to licences against the tenants.
Or
The user that has authorised your connection to the partner centre has been flagged as a 'risky user' by Azure.
Or
You are using the incorrect redirect URI.
Check the tenant that you have used to create a (multi-tenanted) application to authorise the CSP integration with, has access to your customer's licences.  Alternatively, contact Microsoft support to have your permissions elevated.
Or
Log into your Azure (the parent tenant) and navigate to the user account you used to authorise Halo's connection to the Partner centre, check if the user has been flagged as a risky user. If they have you will need to complete the steps to remove the risky user flag. 
Or 

Check the correct redirect URI is assigned to your single tenanted Azure application, once changed you will need to disconnect and re-authorise the integration:

Users & Devices
The identity of the calling application could not be established'.
OR
Failed to retrieve users - Token refresh failed - invalid_client - AADSTS7000229: The client application X...X is missing service principal in the tenant Y...Y.
OR
AADSTS700016 Application not found in the directory when logging in
Admin Consent has not been successfully granted.
More formally, an Enterprise Application has not been correctly provisioned within the tenant.
Please re-read the Admin Consent section of this guide and ensure that you have correctly:
  • Granted Admin Consent for that tenant.
  • Granted that consent with an Admin account with the correct role that is native to the tenant.
  • The permissions granted in the Multi-Tenanted Azure Application are exactly as described.
  • Review the GDAP relationship with that tenant: ensure that it is active, with the relevant Admin roles and the 'Adminagents' group has access to those roles.
  • If you have mapped more than one tenant to one Halo customer, please grant admin consent to all tenants before attempting import or use Tenant filter described in User mappings to limit the import on only relevant tenants.
Please also review the GDAP relationship with that tenant: ensure that it is active, with the required Admin roles and the 'Adminagents' group has access to those roles.
You can also try logging into the tenant directly with the admin account you are trying to authorise with and grant Admin Consent to the Enterprise App manually
Users & Devices
Insufficient Privileges
Multiple
Check you have used Application (and not delegated) permissions on your Multi-Tenanted Azure Application.
Please also review the GDAP relationship with that tenant: ensure that it is active, with the relevant Admin roles and the 'Adminagents' group has access to those roles.
AllToken Expiry
Your secret has expired
Your will need to use the instructions provided in this guide to generate a new secret and replace it within the correct section of the integration. If related to your Single-Tenanted app registration, you will ned to disconnect to replace the secret and then re-connect.

Referenced by