Skip to main content
Question

docusign 500 when trying to delete a user via the admin API

  • February 11, 2025
  • 0 replies
  • 13 views

I am attempting to delete/close an account user using the Python SDK. The access token was obtained using the Oauth Authorization Code Grant Flow. I have the user_read and user_write scopes as well. The schemas were imported from the docusign_admin.models and used to craft the response body
I am declaring my api client and making the request in the following manner. 

api_client = ApiClient(host="https://api-d.docusign.net/management")api_client.set_default_header(    header_name="Authorization",    header_value=f"Bearer {access_token}")users_api = UsersApi(api_client=api_client)
request_body = DeleteUserIdentityRequest(    identities=[        UserIdentityRequest(            id=account_id        )    ])response = users_api.delete_identities(    organization_id,    user_id,    request_body)

I am getting the following response. The reference id has been redacted

HTTP response body: b'{"error":"internal_server_error","error_description":"An internal server error occured. If this error continues, the reference id can be used for debugging.","reference_id":"9fab0e11-xxxxxxx-105d7e9cd1a6"}'

I believe the access token is working as I have fetched the list of users from the same access token. I am using a developer account. My question is what exactly am I doing wrong? Is there any way to reach out Docusign’s support system. If yes how can I do that? I also have a free trial for their business account. 

0 replies

Be the first to reply!