我们正在尝试使用 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/