Forum Discussion
Unable to add SharePoint site as a tool in Foundry Agent (403 – User does not have valid license)
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.