通过API添加权限配置文件 [英] Add permission profile through API

查看:102
本文介绍了通过API添加权限配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过DocuSign REST API为用户添加权限配置文件?创建新用户时还是之后?我看到可以在其中将用户添加到组中,但不能在其中添加权限配置文件。

Is it possible to add a permission profile for a user through the DocuSign REST API? Either when creating a new user or afterwards? I see where I can add a user to a group, but not a permission profile.

推荐答案

是的,您可以同时进行-可以在添加新用户时修改用户配置文件,也可以通过DocuSign的API修改现有用户。 (您也可以通过控制台UI手动设置它们)

Yes you can do both - you can modify user profiles when adding a new user, and you can also modify existing users - through DocuSign's APIs. (You can also manually set them through the Console UI)

向帐户添加新用户时,您需要为用户设置一些高级设置,例如名称,电子邮件,公司等,然后有一个

When adding new users to an account there are some high level settings you set about the user, such as name, email, company, etc., and then there is a

userSettings 

对象,其中包含(名称,值)对的设置,例如它们是否是管理员,是否可以发送信封,是否可以通过API发送,在线REST API指南的下一页描述了此调用,并在下面有单独的部分,列出了所有可能的名称->值对及其值。其中大多数是布尔值,但有些是字符串。

object that contains (name,value) pairs for settings such as whether they're an admin, if they can send envelopes, if they can send through the API, etc. The following page from the online REST API guide describes this call and has a separate section below that lists all the potential name->value pairs and their values. Most of them are booleans but some are strings.

DocuSign REST API调用-将成员添加到帐户

下一步,查看为现有用户设置了哪些帐户设置,您可以进行API调用来检索它们:

Next, to see what account settings are set for an existing user, you can make an API call to retrieve them:

DocuSign REST API调用-获取用户设置

最后,要修改现有用户的设置,可以进行以下调用:

Lastly, to modify the settings of an existing user, you can make the following call:

DocuSign REST API调用-修改用户设置

轻松,快速地测试所有这些的最好方法是使用REST API资源管理器。您可以通过该工具添加userSettings名称->值对,并查看示例请求主体的外观...

Probably the best way to test all of this out easily and quickly is to use the REST API explorer. You can add the userSettings name->value pairs through the tool and see what the sample request bodies look like...

DocuSign ioDocs Explorer


到可以在控制台中查看的用户配置文件(即DocuSign Sender,Admin等),您可以创建组,将用户添加到这些组中,然后根据 permissionProfileId 配置这些组以使用现有配置文件。通过API进行操作的步骤如下:

With regards to user profiles that can be viewed in the Console (i.e. DocuSign Sender, Admin, etc.) you can create groups, add users to those groups, then configure those groups to use existing profiles based on the permissionProfileId. The steps to do that through the API are as follows:


  1. 添加新组

  2. 将用户添加到刚创建的新组中

  3. 获取您帐户中的权限配置文件列表

  4. 设置组的权限配置文件

  1. Add a new group
  2. Add users to the new group you just created
  3. Get a list of Permission Profiles in your account
  4. Set the Permission profile for the group

这篇关于通过API添加权限配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆