无法更新用户的“管理帐户”;通过“修改用户帐户设置”获得许可API [英] Fail to update user's "Manage Account" permission through "Modify User Account Settings" API
问题描述
我们正在使用DocuSign REST API v2,并且正在使用修改用户帐户设置方法
We are using DocuSign REST API v2, and we are using the "Modify User Account Settings" method
端点: / accounts / {accountId } / users / {userId} / settings
我们在API中使用的JSON是:
The JSON we had used in the API is:
{
"userSettings": [
{
"name": "canManageAccount",
"value": "false"
},
{
"name": "canSendEnvelope",
"value": "true"
}
]
}
我们发现我们能够使用API启用或禁用发送信封用户的许可;但不适用于管理帐户权限。
We found that we are able to use the API to enable or disable the "Send Envelopes" permission for a user; but not for the "Manage Account" permission.
请帮助解决问题。
推荐答案
此设置(canManageAccount)的更新已在REST中中断了一段时间,尽管可以在SOAP中使用。 DocuSign Engineering有一个错误可以解决REST部分,但是我不知道什么时候可以修复它并可以在生产环境中使用。
The updating of this setting (canManageAccount) has been broken in REST for awhile now, it works in SOAP though. There is a bug with DocuSign Engineering to address the REST portion, I do not know when it will be fixed and live in Production though.
如何在SOAP中进行操作
How to do it in SOAP
SOAP: 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>
这篇关于无法更新用户的“管理帐户”;通过“修改用户帐户设置”获得许可API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!