Forum Discussion

pekaras's avatar
pekaras
Copper Contributor
Aug 01, 2023

Response AADSTS500014 error

Good morning.

 

I have created a new app registration and grant to it the recommended permissions as described in the official documentation.

 

STEP 1: I receive an access token successfully. 

STEP 2: With this key i am trying to create a new subsription bu a get a 400 bad request error with the following message:

 

AADSTS500014: The service principal for resource 'https://plat.teams.microsoft.com' is disabled. This indicate that a subscription within the tenant has lapsed, or that the administrator for this tenant has disabled the application, preventing tokens from being issued for it.
 
I have searched the web for a solution but i didn't find anything that helped me.
  • pekaras - Could you please try following below steps and let us know if it helps?

    1. Open https://portal.azure.com with your O365 Tenant Admin account.
    2. Navigate to: Azure Active Directory
    3. Navigate to: Enterprise Applications (on the left side bar)
    4. Navigate to: Microsoft Teams - which will open a Slice for MS Teams settings.
    5. Click: Properties
    6. Enable for users to sign-in?: YES

       

     

     

    Thanks, 

    Prasad Das

    ------------------------------------------------------------------------------------------ 

    If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. 

    • pekaras's avatar
      pekaras
      Copper Contributor
      I have enabled the users to sign in, but i still receive the same error.

      Before a few months the subscription create & update was working normally, but now for some unknown reason i receive this response.
      • Prasad_Das-MSFT's avatar
        Prasad_Das-MSFT
        Icon for Microsoft rankMicrosoft

        pekaras -Please verify these below steps:

        1. Check if your subscription is active and not expired. If it has expired, you will need to renew it.

        2. Verify if the application is enabled in your Azure AD portal. Make sure that the application is not disabled by the administrator. You can check this by going to the Azure AD portal and navigating to the "App registrations" section.

        3. Ensure that the necessary permissions are granted to the application, and you have the necessary permissions for creating subscriptions in Teams.

         

Resources