I would like to update the getPickerParams function to enable search. If the user is using oneDrive business I also want to enable the "My Organization" pivot
functiongetPickerParams():PickerParams{constchannelId=uuidv4();constconfig=OneDriveConfig.getInstance();constparams: PickerParams={sdk:'8.0',entry:{oneDrive:{}},authentication:{},messaging:{origin: window?.location?.origin||'',channelId},search:{enabled: true},typesAndSources:{mode:'files',pivots:{oneDrive: true,recent: true,myOrganization: config.getAuthorityType()==="organizations"}}};// For personal accounts, set files object in oneDrive
if(config.getAuthorityType()!=='organizations'){params.entry.oneDrive={files:{}};}returnparams;}
Originally created by @selenecodes on GitHub (Sep 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17929
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
Right now you're not able to search through your files in OneDrive and the "My Organization" panel is hidden by default.
**Relevant file:**
https://github.com/open-webui/open-webui/blob/4d7fddaf7e434bf59fdd879ef11d712a503b7863/src/lib/utils/onedrive-file-picker.ts#L206-L211
### Desired Solution you'd like
I would like to update the `getPickerParams` function to enable search. If the user is using oneDrive business I also want to enable the "My Organization" pivot
```typescript
function getPickerParams(): PickerParams {
const channelId = uuidv4();
const config = OneDriveConfig.getInstance();
const params: PickerParams = {
sdk: '8.0',
entry: {
oneDrive: {}
},
authentication: {},
messaging: {
origin: window?.location?.origin || '',
channelId
},
search: {
enabled: true
},
typesAndSources: {
mode: 'files',
pivots: {
oneDrive: true,
recent: true,
myOrganization: config.getAuthorityType() === "organizations"
}
}
};
// For personal accounts, set files object in oneDrive
if (config.getAuthorityType() !== 'organizations') {
params.entry.oneDrive = { files: {} };
}
return params;
}
```
### Alternatives Considered
_No response_
### Additional Context
Microsoft file picker configuration schema: https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/v8-schema?view=odsp-graph-online
I have looked into adding the shared, sharedLibraries, site pivots as well however those either don't do anything or (in the case of the site pivot) actively remove other options (like searching by People/Meetings)
<!-- gh-comment-id:3352506998 -->
@selenecodes commented on GitHub (Sep 30, 2025):
I have looked into adding the `shared`, `sharedLibraries`, `site` pivots as well however those either don't do anything or (in the case of the `site` pivot) actively remove other options (like searching by People/Meetings)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @selenecodes on GitHub (Sep 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17929
Check Existing Issues
Problem Description
Right now you're not able to search through your files in OneDrive and the "My Organization" panel is hidden by default.
Relevant file:
https://github.com/open-webui/open-webui/blob/4d7fddaf7e434bf59fdd879ef11d712a503b7863/src/lib/utils/onedrive-file-picker.ts#L206-L211
Desired Solution you'd like
I would like to update the
getPickerParamsfunction to enable search. If the user is using oneDrive business I also want to enable the "My Organization" pivotAlternatives Considered
No response
Additional Context
Microsoft file picker configuration schema: https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/v8-schema?view=odsp-graph-online
@selenecodes commented on GitHub (Sep 30, 2025):
What this would look like:

Old/current version:
@selenecodes commented on GitHub (Sep 30, 2025):
I have looked into adding the
shared,sharedLibraries,sitepivots as well however those either don't do anything or (in the case of thesitepivot) actively remove other options (like searching by People/Meetings)@selenecodes commented on GitHub (Oct 1, 2025):
Closing issue since PR was merged