Repository navigation
Camera/Microphone Access Not Working in Production M365 Copilot #74
Description
Issue: Camera/Microphone Access Not Working in Production M365 Copilot
Description
We are testing an internally developed SPFx Copilot Component that requires access to the device camera and microphone.
The component works as expected when tested through Copilot Workbench, including requesting camera and microphone access. However, when the same component is deployed and accessed through production Microsoft 365 Copilot, camera and microphone access is blocked.
This appears to indicate a difference between the Copilot Workbench host and the production Microsoft 365 Copilot host/container, rather than an issue with the component's core functionality.
Steps to Reproduce
- Develop or use the internally developed Copilot Component that requires camera and microphone access.
- Ensure the component invokes camera/microphone functionality using
getUserMedia()directly or through the relevant SDK/component functionality. - Run the component using Copilot Workbench.
- Trigger the functionality that requires access to the camera and microphone.
- Verify that the browser displays the camera/microphone permission prompt.
- Grant the requested permissions.
- Confirm that the camera and microphone functionality works successfully in Copilot Workbench.
- Deploy the same component without code changes to the target SharePoint/Microsoft 365 environment.
- Open the component through production Microsoft 365 Copilot.
- Trigger the same camera/microphone functionality.
- Observe that the component loads successfully and the functionality is triggered, but no browser permission prompt is displayed.
- Open the browser developer console and check for Permissions Policy errors.
Actual Behavior
In production Microsoft 365 Copilot:
- The Copilot Component loads successfully.
- The camera/microphone functionality is triggered.
- No browser permission prompt is displayed.
- Camera and microphone access is blocked by the host container.
- The browser console reports errors similar to:
[Violation] Permissions policy violation: microphone is not allowed in this document.
[Violation] Permissions policy violation: camera is not allowed in this document.
The component/SDK subsequently reports that access to the hardware is denied.
Expected Behavior
The component should be able to request camera and microphone permissions when running in production Microsoft 365 Copilot, in the same way that it does when running through Copilot Workbench.
The browser should either:
- display the camera/microphone permission prompt, or
- honor previously granted permissions,
provided the Copilot Component has declared the required device permissions and the host supports the capability.
Comparison
Current Assessment
The component itself appears to be functioning because the same component and functionality work successfully in Copilot Workbench.
The failure occurs specifically when the component is hosted inside production Microsoft 365 Copilot, where the browser reports that camera and microphone are not permitted by the host container's Permissions Policy.
Therefore, the issue may be related to the production Microsoft 365 Copilot host/container configuration or supported capabilities, rather than the internally developed bot/component.
Validation Question
The key question to confirm is:
Does the production Microsoft 365 Copilot host currently support camera and microphone access for this type of SPFx Copilot Component, and if so, how are the required
cameraandmicrophonePermissions Policy permissions granted to the component?
In particular, it should be confirmed whether the production host/container provides the equivalent of the required iframe Permissions Policy, such as:
allow="camera; microphone"
or an equivalent host-level configuration.
Conclusion
Based on the current testing:
Copilot Component: Functional
Copilot Workbench: Camera/microphone access works
Production M365 Copilot: Camera/microphone access blocked by host Permissions Policy
The production host behavior should therefore be investigated before treating this as a defect in the internally developed bot/component.
Activity
atktroubleshootingapp commentedon Sep 8, 2026
👋 Hi @Ashlesha-MSFT,
Thank you for reporting this issue! We want to let you know that:
⏱️ Our team will personally review your issue
🎯 You can expect a response within 2 business days
✨ This is an AI-generated initial response
🤖 AI-Generated Preliminary Analysis:
Classification: Not a bug — production use is currently unsupported because SharePoint Copilot Apps remain in preview and Microsoft explicitly says not to use them in production.
devicePermissions: ["media"]is documented for Teams apps, but does not establish media support for SPFx components hosted in Microsoft 365 Copilot.type:bug-suspected, but has no maintainer confirmation or announced fix.What to do now:
Useful links: