禁止将OneDrive个人帐户与OneDrive API一起使用

问题描述

我正在尝试使用OneDrive API中的filepicker,并且我想让我的应用程序的用户只能从他们的onedrive商务或共享点帐户中打开文件,因为我只想在组织范围内创建一个可共享的链接。因此,我想防止用户连接到此个人onedrive帐户。但是我找不到任何方法,该用户可以连接到一个onedrive个人帐户,并且在他选择文件时出现错误响应,因为显然,onedrive帐户不是组织。我只想防止用户使用个人帐户,那么他不会错。

此外,收到的错误消息根本不知道用户从个人帐户中选择了文件,因此我不能以此为变通办法来告诉用户他在做什么错... >

var odOptions = {
            clientId: "",action: "share",multiSelect: false,advanced: {
                redirectUri: "blabla/authResponse.php",createLinkParameters: { type: "view",scope: "organization" }
            },success: function(files) {
                console.log(files);
                $("").val(files.value[0].webUrl);
                $("").val(files.value[0].name);
            },cancel: function() { /* cancel handler */  },error: function(error) { console.log(error); }
        };
        OneDrive.open(odOptions);

谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...