Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用API邀请共享文件用户访问Podio工作区_C#_.net_Podio_Sharefile - Fatal编程技术网

C# 使用API邀请共享文件用户访问Podio工作区

C# 使用API邀请共享文件用户访问Podio工作区,c#,.net,podio,sharefile,C#,.net,Podio,Sharefile,我们正在尝试使用API向Podio工作区添加成员。我们可以用2级API密钥在正常的Podio中实现这一点 但是当我们尝试在Sharefile Podio(使用Sharefile帐户进行身份验证)中执行此操作时,相同的代码抛出以下错误 {“error\u参数”:{},“error\u细节”:null,“error\u传播”:false,“请求”:{“url”:”http://api.podio.com/space/xxxxxx/member/“,”查询字符串“:”方法“:”POST“}”,错误描述

我们正在尝试使用API向Podio工作区添加成员。我们可以用2级API密钥在正常的Podio中实现这一点

但是当我们尝试在Sharefile Podio(使用Sharefile帐户进行身份验证)中执行此操作时,相同的代码抛出以下错误

{“error\u参数”:{},“error\u细节”:null,“error\u传播”:false,“请求”:{“url”:”http://api.podio.com/space/xxxxxx/member/“,”查询字符串“:”方法“:”POST“}”,错误描述“:” id为xxxxx的用户没有在空间上添加\u用户\u指示灯的权限 id为xxxxx的“错误”:“禁止”}


我们试图邀请的用户已经在Sharefile中,可以通过UI进行邀请。

我们发现问题在于用户的角色设置

该用户是Sharefile中的客户,我们试图从代码中将该用户的角色设置为“light”

我们通过将角色设置为“常规”或“管理员”来修复它

Endpoint : /space/{space_id}/member/ 
Method : POST 
Response :