Getting Error while uploading the Custom App in Teams

surindersingh dhaliwal 86 Reputation points
2023-05-15T07:26:04.3066667+00:00

So one of our user is trying to upload the custom app through the Teams and getting below error.

Failed to create an app in Azure Active Directory. This problem can be resolved by login using a Microsoft 365 developer account, you can apply for a free account by joining Microsoft 365 Developer Program(https://developer.microsoft.com/en-us/microsoft-365/dev-program). Detailed error: Request failed with status code 403. Reason: Insufficient privileges to complete the operation."

Currently I have assigned the E3 license to the user and created one teams policy to upload the Custom app. User doesn't have any Azure AD role at the moment. is any any Azure AD role we need to assign to the user to rid off the issue or is this something license issue?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,547 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JimmyYang-MSFT 50,356 Reputation points Microsoft Vendor
    2023-05-17T08:47:14.04+00:00

    Hi @surindersingh dhaliwal

    According to your error message, it seems that an Insufficient privileges issue, and has two solutions to solve it. These two solution can apply depend on different actual situations.

    (1) If you only have guest permission in AAD, then meet this error in Azure Devops.

    Just go contact the admin to grant the minimum additional permissions to you. For how to grant this, please due to this doc. Let the admin to set Guest user permissions are limited to No. At this time, you will get the minimum additional permissions.

    (2) If you are the member of AAD, and just not be authorized to add applications in the directory.

    Go User settings, then change Users can register applications to Yes under App registrations section.

    [enter image description here

    Please refer to this section: The user is not authorized to add applications in the directory.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments