创建用户后,Active Collab发送电子邮件 [英] Active Collab send Email after User create
问题描述
我正在使用Active Collab API V5从我们的服务台创建用户-使用以下POST进行用户创建.
I'am using the Active Collab API V5 to create User from our Service Desk - the creation of the User with the following POST works.
curl -k -v -h "Content-Type:application/json" -h "X-Angie-AuthApiToken:XXXXXXX" -X POST -d '{"type": "Member","email": "XXXXXXXX@XXXXXX", "password": "XXXXX"}' https://URL/api/v1/users
是否可以自动发送邀请链接?就像在网络界面上创建用户一样(从人物"页面发送邀请链接).
Is it possible to send the invite link automatically? Like the User creation on the web interface (Send invite link from People page).
我找到了此API参考 https://developers. activecollab.com/api-documentation/v1/people/users/invite.html ,但这种方式只能直接邀请到项目.
I found this API Reference https://developers.activecollab.com/api-documentation/v1/people/users/invite.html but on this way its only possible to invite directly to projects.
推荐答案
系统在帐户创建和邀请(包括帐户创建,但功能更多)之间进行了区分.邀请一个或多个用户的方法如下:
System makes a distinction between account creation, and invitiation (which includes account creation, but does a bit more). Here's how to invite one user or more users:
curl -h "Content-Type:application/json" \
-h "X-Angie-AuthApiToken:XXXXXXX" \
-X POST -d '{"role": "Member","email_addresses": ["X@Y.COM", "Y@X.com"], "custom_permissions": ["can_manage_projects", "can_manage_finances"]}' \
https://URL/api/v1/users/invite
差异:
- API端点不同(
/api/v1/users/invite
), - 使用
role
代替类型 - 可以指定一个以上电子邮件地址的列表,
- 可以设置自定义权限,
- 您无法指定用户密码.他们将收到邀请电子邮件,并自己完成此过程.
- API end-point is different (
/api/v1/users/invite
), - Use
role
instead of type, - A list of more than one email address can be specified,
- Custom permissions can be set,
- You can't specify user's password. They will receive invitation email, and complete the process themselves.
这篇关于创建用户后,Active Collab发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!