During the steps to set up Symantec Endpoint Protection Mobile (SEP Mobile) to Integrate with Microsoft Intune, an error message is displayed when trying to add the iOS App or the Android App under Settings > Intune > Basic Setup page:
Error: "#5152 ("something went wrong")"
The error returns, as SEP Mobile wasn't able to add the application to Azure Active Directory.
In the process of redirecting the current Administrator and authenticating with AAD, the Intune service responded with an error.
One possible reason for an authentication error can be due to a restrictive policy in Intune, for the target user. A solution for this specific use case is as follows:
If a specific conditional access policy is enabled, please temporary disable it and try to add the iOS and Android apps in the SEP Mobile Management Console. Once they are added, you can enable the conditional access policies again.