gpt4 book ai didi

c# - ShareFile 用户使用 API 邀请到跑道工作空间

转载 作者:行者123 更新时间:2023-11-30 21:33:38 26 4
gpt4 key购买 nike

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

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

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com