-
Notifications
You must be signed in to change notification settings - Fork 247
Share Declarative Agents with Others
For developers building declarative agents for Copilot, a common requirement is the ability to share these agents with team members or specific audiences within their organization. Starting with version 6.2.0 of the Microsoft 365 Agents Toolkit (ATK), this process has become significantly more streamlined and user-friendly.
- Specify access permissions for their agents — either to selected individuals or group of users.
- Share agents across the entire tenant with just a few clicks.
- Generate a shareable link that recipients can use to instantly accept and access the shared agent.
This functionality is available in both ATK for VS Code and ATK CLI.
- The M365 account you used for deploying declarative agent must have M365 Copilot license.

- Deploy an advanced declarative agents that have actions or api plugins are not supported by the Copilot platform yet. This support is coming on the way!
-
Open your declarative agent project in VS Code and open the ATK panel.
-
Navigate to the lifecycle control in ATK panel and click
Share
.
⚠️ Important! — Run theProvision
lifecycle before sharing. Provision ensures your agent is deployed to Copilot with the correct shareable scope.

- Choose the audience: Select "Share access with selected users" and then enter individual emails, or group email address.

Or select “Share with all tenant users.”

- Get a shareable link - on successful sharing you will see a notification appear in right bottom corner:

Now you can navigate to env.dev file to get the shareable link:
- Copy the link and send to your colleagues. Recipients click Accept to gain access.
- From your agent project folder, run the ATK CLI command
atk share
:
example below - replace placeholders with your values:
# Share to all tenant users
$ atk share --scope tenant -i false
# Share to selected users
$ atk share --scope users --email '[email protected]' -i false
- Copy the share link from env.dev file and send to your colleagues. Recipients click Accept to gain access.
Notes: Pre-steps should have been done are create agents and provision the agents. Example as below:
# Create declarative agents $ atk new -n da -c declarative-agent -with-plugin no -i false # provision declarative agents $ atk provision
Build Custom Engine Copilots
- Build a basic AI chatbot for Teams
- Build an AI agent chatbot for Teams
- Expand AI bot's knowledge with your content
Scenario-based Tutorials
- Send notifications to Teams
- Respond to chat commands in Teams
- Respond to card actions in Teams
- Embed a dashboard canvas in Teams
Extend your app across Microsoft 365
- Teams tabs in Microsoft 365 and Outlook
- Teams message extension for Outlook
- Add Outlook Add-in to a Teams app
App settings and Microsoft Entra Apps
- Manage Application settings with Teams Toolkit
- Manage Microsoft Entra Application Registration with Teams Toolkit
- Use an existing Microsoft Entra app
- Use a multi-tenant Microsoft Entra app
Configure multiple capabilities
- How to configure Tab capability within your Teams app
- How to configure Bot capability within your Teams app
- How to configure Message Extension capability within your Teams app
Add Authentication to your app
- How to add single sign on in Teams Toolkit for Visual Studio Code
- How to enable Single Sign-on in Teams Toolkit for Visual Studio
Connect to cloud resources
- How to integrate Azure Functions with your Teams app
- How to integrate Azure API Management
- Integrate with Azure SQL Database
- Integrate with Azure Key Vault
Deploy apps to production