Docusign - API to reactivate a closed user

2020-04-21 09:22发布

问题:

I've been able to reactivate a closed Docusign user from the Admin Console, but is there a REST API for that? The Users doc doesn't seem to mention this.

I know there's a similar question on this topic, but there was no resolution found yet. I'm posting this question again hoping that it gets the attention of Docusign people, as they recommend posting API-related questions on SO rather than their own support/community forums.

Also, if there's an API that does exist to recreate/reactivate a deleted user, please document it with clarity. Spelling out what each REST operation does and how it affects something are very important to developers who use such API.

回答1:

You can reactivate the deleted user by passing the same user details to CreateUsers api.

Please note that the email/password/userName combination should match the user that was deleted.

Here is a sample request to the CreateUsers API.

{
  "newUsers": [
    {
      "email": "johnsmith@acme.com",
      "password": "**********",
      "userName": "johnsmith"
    }
  ]
}


回答2:

This is also possible to do via the UserId and an UpdateUsers call

PUT {VX}/accounts/{accountid}/users/

{
    "users": [{
        "userId": "00000000-0000-0000-0000-000000000000",
        "sendActivationEmail": "send"
    }]
}


标签: docusignapi