Issue on Docusign Admin Api getUserProfile

314 Views Asked by At

Hi I am facing an issue while loading the endpoint point /v2/organizations/{organizationId}/users/profile I am getting a 404 error

img_error

Attached below screenshots for the postman response and getting organisationId

img_postman

2

There are 2 best solutions below

3
On

In order for that endpoint to work you're going to need to provide some additional parameters in the URL. For retrieving a user's profile directly, you should be able to use: https://api-d.docusign.net/management/v2/organizations/{OrgID}/users/[email protected]

The result looks like this:

{
    "users":  [
                  {
                      "id":  "28fbe7e4-xxxx-xxxx-xxxx-c26569aa827c",
                      "site_id":  1,
                      "site_name":  "Demo",
                      "user_name":  "Matt_SATest_1",
                      "first_name":  "MattSAT_1",
                      "last_name":  "K",
                      "user_status":  "active",
                      "default_account_id":  "70da9c0c-xxxx-xxxx-xxxx-7b3d6733328e",
                      "default_account_name":  "Matt K",
                      "is_organization_admin":  false,
                      "created_on":  "2020-08-25T20:38:57.533",
                      "memberships":  "",
                      "identities":  "",
                      "is_device_verification_enabled":  true
                  }
              ]
}

To retrieve a list of users for an org, you should be able to use: https://api-d.docusign.net/management/v2/organizations/{OrgID}/users?URLParameters. The URL parameters for this particular call require one of the following: account_id, organization_reserved_domain_id, or email. You're required to use at least one, but you should also be able to use more than one parameter at a time.

The result looks something like this:

{
    "users":  [
                  {
                      "id":  "28fbe7e4-xxxx-xxxx-xxxx-c26569aa827c",
                      "user_name":  "Matt_SATest_1",
                      "first_name":  "Matt",
                      "last_name":  "K",
                      "user_status":  "active",
                      "email":  "[email protected]",
                      "created_on":  "2020-08-25T20:38:57.533"
                  }
              ],
    "paging":  {
                   "result_set_size":  1,
                   "result_set_start_position":  0,
                   "result_set_end_position":  0,
                   "total_set_size":  1
               }
}
2
On

The correct baseUrl for demo Admin API is https://api-d.docusign.net/management/v2/ Try to change that and see if that works.