Forum Discussion
Unable to add SharePoint site as a tool in Foundry Agent (403 – User does not have valid license)
Hi,
I’m very new to Foundry and I’m trying to add a SharePoint site as a tool (SharePoint grounding) in a Foundry Agent, but it fails with:
HTTP 403 – Forbidden Authorization Failed – User does not have valid license Tool: sharepoint_grounding
Error{"error": "Tool_User_Error", "message": "[Sharepoint-tool] Request to Graph API failed with HTTP status 403, error-code: Forbidden and error-message: Authorization Failed - User does not have valid license. Client Request Id: 0000000000000000000000. Find out more troubleshooting details here - https://aka.ms/foundrysharepointtroubleshooting", "code": "sharepoint_grounding_tool_user_error", "tool": "sharepoint_grounding", "allow_retry": false, "extra_info": null}
Azure roles, Graph permissions, and SharePoint access are all correctly configured (Owner, Azure AI Admin/Developer/User), and the SharePoint site is accessible outside Foundry. Despite this, Foundry blocks the tool with a license error.
Any help or guidance would be very much appreciated.
regards
Angela
1 Reply
hi Angela2 The key part of the error is actually: "User does not have valid license”
So this is likely not an Azure RBAC or SharePoint permission issue, but a Microsoft 365 licensing requirement for the SharePoint grounding feature itself.
Even if:
Graph permissions are correct
SharePoint access works normally
Azure AI roles are assigned
the user/service account may still need a supported Microsoft 365 license (often SharePoint/Teams/Copilot-related licensing) for Foundry to access SharePoint grounding through Graph APIs.
A few things worth checking:
Does the account have an active Microsoft 365 license assigned?
Is SharePoint Online included/enabled in that license?
Are you using a personal account vs organizational/work account?
Has the license fully propagated (can take time)?
Try with another licensed user account to compare behavior
Since the error comes from Graph authorization, this does sound more like a tenant licensing validation issue than a Foundry configuration problem.
The troubleshooting link in the error may also help identify the exact required license/SKU for SharePoint grounding support.