c# - 使用 API 邀请 ShareFile 用户加入跑道工作区

标签 c# .net podio sharefile

我们正在尝试使用 API 将成员添加到跑道工作区。我们可以使用 2 级 API key 在普通跑道上执行此操作。

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

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

{"error_parameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http://api.podio.com/space/xxxxxx/member/","query_string":"","method":"POST"},"error_description":"The user with id xxxxx does not have the right add_user_light on space with id xxxxx","error":"forbidden"}

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

最佳答案

我们发现问题出在用户的角色设置上。

该用户是 Sharefile 中的客户,我们尝试通过代码将用户的角色设置为“轻量级”。

We fixed it by setting the role into 'regular' Or 'admin'.

关于c# - 使用 API 邀请 ShareFile 用户加入跑道工作区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51129562/

相关文章:

javascript - 如何在浏览器中使用podio-js(没有Node.js)?

c# - 访问操作的输出参数

c# - 找不到名为 'PreviewCV' 的 View 组件

c# - "SqlParameterCollection only accepts non-null SqlParameter type objects, not String objects"

css - 在 visual studio 2012 中捆绑

podio - 如何获得 Podio APP 响应细节级别 mini、micro 或 Short?

javascript - 跑道JS : Can I trust that the access/refresh token can only be used from a specific IP address?

c# - 我不应该为此收到编译器警告吗?我该如何启用它?

c# - 使用时出现运行时错误和程序退出 - 使用 C# 进行异步和等待

c# - 静态字段 - 使用静态的字符串插值