SharePoint agents use SharePoint sites, pages, and document libraries as knowledge sources to respond to the user. You can control a user’s access to the information when they use an agent by controlling their access to the site. SharePoint provides many tools to control access to a site:
- Control access to a site that is associated with a Microsoft 365 group by setting the site as private (team sites only) and controlling group membership.
- Control access to a site that isn't associated with a group using site permissions.
- Control access with access governance policies available in the SharePoint admin center and PowerShell.
Learn more about using SharePoint's built-in features to control access here.
Please click on the below link for more details: https://learn.microsoft.com/en-us/sharepoint/manage-access-agents-in-sharepoint
If the answer is helpful, please click “Accept Answer” and kindly upvote it. If you have extra questions about this answer, please click “Comment”.