使用 API 邀请 ShareFile 用户加入跑道工作空间

ShareFile user invite to Podio workspace using API

我们正在尝试使用 API 将成员添加到跑道工作区。我们可以在普通的跑道中使用 2 级 API 键来做到这一点。

但是当我们尝试在 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 中的客户,我们试图通过代码将用户的角色设置为 'light'。

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