tool_user_error: Error: sharepoint_tool_user_error; Authorization Failed - user does not have a valid license

Mohammed Anshif 5 Reputation points
2025-08-01T12:35:31.3033333+00:00

In azure AI Foundry when connecting with the new sharepoint tool to my share point site the ai agent returns "tool_user_error: Error: sharepoint_tool_user_error; Authorization Failed - User does not have valid license.

I have sharepoint license and azure as well as AI foundry subscriptions.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
{count} votes

2 answers

Sort by: Most helpful
  1. Nguyen, Jennifer T (CGI Federal) 0 Reputation points
    2025-08-04T15:54:23.7233333+00:00

    I figured out the issue:
    Prerequisites:

    Developers and end users have Microsoft 365 Copilot license, as required by Microsoft 365 Copilot API.

    Developers and end users have at least Azure AI User RBAC role.

    Developers and end users have at least READ access to the SharePoint site.


  2. Manas Mohanty 8,150 Reputation points Microsoft External Staff Moderator
    2025-08-05T04:42:52.9833333+00:00

    Hi Mohammed Anshif,

    Attached relevant documentation on below pointers as mentioned by Nguyen, Jennifer T (CGI Federal)

    Developers and end users have at least Azure AI User RBAC role. Developers and end users have at least READ access to the SharePoint site.

    RBAC Azure AI foundry

    Share Point RBAC

    Hope it helps address the issue

    Thank you

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.