
Test SharePoint and Dataverse access in a knowledge assistant
Ask a knowledge assistant when a customer’s project starts and what the customer signed up for. A project lead can read the SharePoint agreement and the CRM record. A support reader can see only the kickoff date. A correct answer for the lead can be an access failure for the support reader. Start there when you test an assistant across SharePoint and Dataverse.

Verify both identities at the source
Set up two non-admin test users and three fictional records in an authorized sandbox. Put an agreement for CED-17 in SharePoint with a scope of two onboarding sessions. In Dataverse, give CED-17 a kickoff of 12 January and a restricted expansion estimate of 72 percent. Create a second record, CED-42, for a similarly named account with a kickoff of 29 January.
Give the project lead read access to all three fixtures. Give the support reader read access to the kickoff on CED-17. Verify the grants with each reader’s own account. Have the support reader open the CRM record, look for the estimate, try the other record, and open the SharePoint document link. Dataverse evaluates record access and column-level security separately. Both restrictions matter here.
Record how the assistant reads each source. Microsoft documents that published Copilot Studio generative answers using SharePoint call on behalf of the user under the configured authentication. A design that copies source permissions into Azure AI Search has another part to verify. The index must receive permission changes, and the refresh behavior depends on the ingestion method and change type. A scheduled run gives you a time to check. Use a measured access change to establish the actual delay for your configuration. Copilot Studio SharePoint knowledge · Azure AI Search permission enforcement
Ask both readers the same account question
Ask “For Cedar Services, account CED-17, what did we agree to deliver and when is kickoff?” Save the new answer, its source links, and any visible previews or follow-up suggestions. The project lead should get two onboarding sessions, with the SharePoint passage, and 12 January, with the CRM record. Open both citations while signed in as the lead and check that each actually supports its claim.
Repeat as support. The reader should still get 12 January, with the CRM citation. Check the scope sentence, source list, hover previews, and suggested follow-ups for anything from the agreement. Then ask each user about the restricted estimate and CED-42. One answer must keep the accounts separate. The other must stay inside the reader’s record and column permissions.
Include a write request while signed in as the read-only user. Ask the assistant to change the kickoff to 19 January, open the CRM record directly and check whether it still shows 12 January. Where an audit log is available to the test owner, confirm whether the assistant attempted or performed any change.
Revoke access while a conversation is open
Save the permission change at the source and start the clock. Confirm independently when the former lead loses direct access to the agreement. Ask the original question in a fresh conversation. Ask a follow-up in the conversation that had previously seen the scope. Measure when both new answers stop returning the agreement’s facts, title, excerpt or URL while still answering the kickoff question. Existing messages retained by the product belong in a separate observation from any new answer produced after revocation.
Choose the maximum permitted delay before running the test. If you rely on group, library or folder grants, repeat with the actual type of change you will use. One working direct grant tells you about one path. Save the identity, account, time, connector configuration and visible outcome for each path you test.
Record the failure in a way someone can reproduce
For each obligation, capture the expected fact, the fact shown, the source ID, the reader’s direct access result, and the pass or failure. Missing evidence stays open. When an answer exposes a restricted item, retain the scope of the exposure in the test record and investigate it before releasing the workflow. The acceptance worksheet and sample observations describe the fixture and how to check structured observations locally.
The example uses fictional records. The outcome to measure in your own environment is what each reader can receive and verify, including after a source permission changes.
