OneDrive tools
Use OneDrive tools to manage files and folders in a connected Microsoft 365 account. These tools can read and change content in the authenticated user's OneDrive.
- Upload files and update existing file content
- Create folders and list folder contents
- Move or delete files and folders
- Resolve sharing URLs and share files or folders with users
Inputs
Tell the agent which file or folder to use and what to do. For a move, provide the destination folder. For a share, identify the recipient and the role to grant. If the user provides a sharing URL, include it in the instructions.
Outputs
Each tool returns the result of its operation. Depending on the operation, later steps can use file or folder details to continue the workflow or explain the result to the user.
Prerequisites
- A Microsoft 365 connector configured in Glean
- A Microsoft account with access to the requested OneDrive files and folders
- A Glean admin who can enable the OneDrive tools and grant consent
Configure OneDrive tools
- For a new Microsoft 365 or OneDrive connector setup, Glean enables the associated tools during connector setup. For a connector that uses the previous setup flow, follow Microsoft 365 tools and extension tools setup.
- Choose Central or Custom OAuth. For a new Custom OAuth configuration, use a single-tenant app when your Glean deployment supports tenant-specific Microsoft Authorization URLs. Existing multitenant apps restricted to your tenant continue to work. Leave the Token URL at its default
/commonvalue. See the setup guide for the Authorization URL format. - In Agent builder, go to Select Step → Tools → By connector and add OneDrive tools to an agent.
Limitations
- OneDrive tools use user OAuth and follow the signed-in user's Microsoft permissions
- Tools that upload, update, move, share, or delete content can make changes in OneDrive
- Single-tenant Custom OAuth availability depends on your Glean deployment. Contact your Glean representative if you can't enter a tenant-specific Authorization URL
- The tenant-specific URL instructions apply to Microsoft commercial cloud. Contact your Glean representative about other Microsoft cloud environments
Troubleshoot OAuth errors
Frequently asked questions
See also
- Microsoft 365 tools — review available Microsoft tool packs
- Microsoft 365 tools and extension tools setup — configure OAuth, permissions, and consent