Docusign管理员API访问

huangapple go评论56阅读模式
英文:

Docusign Admin API access

问题

我们有一个用例,需要获取组织中给定电子邮件地址的帐户列表。我们尝试使用 https://demo.docusign.net/Management/v2/organizations/{{organizationId}}/users/profile?email={{email}} API 获取数据。

我们始终收到一些HTML响应。

关于身份验证。

我们按照 https://developers.docusign.com/docs/admin-api/admin101/application-auth/ 上提到的步骤,将应用与Admin关联,具有 user_read account_read group_read 访问权限,然后使用 https://developers.docusign.com/platform/auth/jwt/jwt-get-token/ 生成断言和访问令牌。

任何输入将不胜感激。

英文:

We have usecase where we want to get list of accounts for a given email id across organization. We are trying to use https://demo.docusign.net/Management/v2/organizations/{{organizationId}}/users/profile?email={{email}} API to get the data.

We are always getting some HTML response back.

About Authentication.

We followed the steps mentioned on https://developers.docusign.com/docs/admin-api/admin101/application-auth/ to associate the app with Admin with user_read account_read group_read accesses. and then used https://developers.docusign.com/platform/auth/jwt/jwt-get-token/ to generate the assertion and access token.

any inputs will be appreciated

答案1

得分: 1

首先,您想要使用的范围列表应包括:

user_read user_write organization_read account_read group_read permission_read identity_provider_read domain_read

其次,使用JWT时,您可能需要检查正在使用的被模拟用户,以确保其是管理员,而不仅仅是账户管理员,而是组织管理员。

第三,请确保您URL中的orgId是正确的。

英文:

First off, the list of scopes you want to use should include:

 user_read user_write organization_read account_read group_read permission_read identity_provider_read domain_read

Second, with JWT you may want to check the impersonated user you're using, to ensure that is an admin, and not just an account admin, but an organization admin.

Third, make sure the orgId in your URL is correct.

huangapple
  • 本文由 发表于 2023年5月18日 03:35:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76275639.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定