使用V2 DocuSign REST API,是否可以获得代表"发送的用户列表。和#"帐号范围"许可?
查看docs,我发现Get User List方法不会返回任何权限信息。除permissionProfileId
group
之外,Get User Information方法只返回一点但没有特定权限。
那么有可能获得用户数据的权限信息吗?或者我可以使用permissionProfileId
调用方法来检查用户是否具有这些权限吗?
我最终要做的是获取能够使用"代表"发送的用户列表。功能需要"代表"发送和"帐户范围的权利"权限。
答案 0 :(得分:2)
您可以使用以下休息方式获取所有用户及其用户设置的列表作为DS管理员:
https://demo.docusign.net/restapi/v2/accounts/[accountid]/users/?additional_info=true
以下示例输出:
{
"users": [
{
"userName": "DocuSignTest2 User-2",
"userId": "b67aa83b-2b3e-4669-a897-89e44b5724c2",
"userType": "CompanyUser",
"isAdmin": "False",
"userStatus": "Created",
"uri": "/users/b67aa83b-2b3e-4669-a897-89e44b5724c2",
"email": "youremail@yourdoman.com",
"firstName": "DocuSignTest2",
"lastName": "User-2",
"userSettings": [
{
"name": "canManageAccount",
"value": "false"
},
{
"name": "canSendEnvelope",
"value": "true"
},
{
"name": "locale",
"value": "en"
},
{
"name": "canSendAPIRequests",
"value": "false"
},
{
"name": "apiAccountWideAccess",
"value": "false"
},
{
"name": "enableVaulting",
"value": "false"
},
{
"name": "vaultingMode",
"value": "none"
},
{
"name": "enableTransactionPoint",
"value": "true"
},
{
"name": "enableSequentialSigningAPI",
"value": "true"
},
{
"name": "enableSquentialSigningUI",
"value": "true"
},
{
"name": "enableDSPro",
"value": "false"
},
{
"name": "powerFormAdmin",
"value": "false"
},
{
"name": "powerFormUser",
"value": "true"
},
{
"name": "canEditSharedAddressbook",
"value": "use_private_and_shared"
},
{
"name": "canManageTemplates",
"value": "create"
},
{
"name": "enableSignOnPaperOverride",
"value": "false"
},
{
"name": "enableSignerAttachments",
"value": "true"
},
{
"name": "allowSendOnBehalfOf",
"value": "false"
},
{
"name": "allowRecipientLanguageSelection",
"value": "true"
},
{
"name": "selfSignedRecipientEmailDocument",
"value": "include_pdf"
}
],
"sendActivationOnInvalidLogin": "false",
"enableConnectForUser": "false",
"groupList": [
{
"groupId": "128693",
"groupName": "Everyone",
"groupType": "everyoneGroup"
}
],
"workAddress": {
"address1": "",
"address2": "",
"city": "",
"stateOrProvince": "",
"postalCode": "",
"phone": "",
"country": ""
},
"homeAddress": {
"address1": "",
"address2": "",
"city": "",
"stateOrProvince": "",
"postalCode": "",
"phone": "",
"country": ""
}
},
[rest removed for sake of example]
答案 1 :(得分:1)
没有一个电话可以完成此任务。
我的建议是将所有这些用户都放在一个组中,然后您可以通过API查询该组中的用户。
示例获取每组用户的列表:
GET https://{server}.docusign.net/restapi/v2/accounts/{accountId}/groups/{groupId}/users
如果您想审核该群组或查看您需要移入该群组的人,您可以获取一个用户列表,然后查看每个用户的用户详细信息(通过programmaticaly循环)。
示例获取用户设置以检查userSettings->allowSendOnBehalfOf
:
GET https://{server}.docusign.net/restapi/v2/accounts/{accountId}/users/{userId}