我们正在使用 DocuSign REST API v2,并且我们正在使用“修改用户帐户设置”方法 https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#REST%20API%20References/Modify%20User%20Account%20Settings.htm
端点:/accounts/{accountId}/users/{userId}/settings
我们在 API 中使用的 JSON 是:
{
"userSettings": [
{
"name": "canManageAccount",
"value": "false"
},
{
"name": "canSendEnvelope",
"value": "true"
}
]
}
我们发现我们可以使用 API 来启用或禁用用户的“发送信封”权限;但不适用于“管理帐户”权限。
请帮助解决问题。
此设置 (canManageAccount) 的更新在 REST 中已经中断了一段时间,但它在 SOAP 中可以工作。 DocuSign Engineering 存在一个用于解决 REST 部分的错误,但我不知道它何时会被修复并在生产中生效。
如何在 SOAP 中实现
SOAP: https://demo.docusign.net/api/3.0/dsapi.asmx https://demo.docusign.net/api/3.0/dsapi.asmx
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateMemberSettings xmlns="http://www.docusign.net/API/AccountManagement">
<AccountId>{accountId}</AccountId>
<UserId>{userId}</UserId>
<MemberSettings>
<CanManageAccount>true</CanManageAccount>
</MemberSettings>
</UpdateMemberSettings>
</soap:Body>
</soap:Envelope>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)