88947

Active Collab send Email after User create

Question:

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).

I found this API Reference <a href="https://developers.activecollab.com/api-documentation/v1/people/users/invite.html" rel="nofollow">https://developers.activecollab.com/api-documentation/v1/people/users/invite.html</a> but on this way its only possible to invite directly to projects.

Answer1:

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

Differences:

<ul><li>API end-point is different (/api/v1/users/invite),</li> <li>Use role instead of type,</li> <li>A list of more than one email address can be specified,</li> <li>Custom permissions can be set,</li> <li>You can't specify user's password. They will receive invitation email, and complete the process themselves.</li> </ul>

Recommend

  • configuring multiple domains using virtual host with mod proxy in a single httpd instance
  • Large file sending by using react-native-ble-plx
  • C# and Active Directory : test if an OU exist
  • ontouch in android: getting X and Y coordinates and drawing circle on that point
  • Get excel sheet names for large excel files using Apache POI
  • NullPointerException when trying to write object instance to ObjectOutputStream
  • Polarion ALM tool [closed]
  • how to put each php foreach value into each jquery ajax
  • How long does redux state persist in memory in react native
  • Jquery if $(window) scroll down function [duplicate]
  • Trying to use std::add_const to turn T& into const T&
  • Script Install mysql-server without password prompt via CentOS
  • Twitter's Bootstrap popover not working
  • Using Session to limit form submission by time
  • SQLite: Get Total/Sum of Column
  • Write unittest for function with yield
  • Android: Connect buttons with lines
  • a design to avoid circular reference in this scenario
  • Creating image (PNG or JPEG) from PDF along with HTML image maps of text in the image?
  • AngularJS TypeError: Converting circular structure to JSON at Object.stringify (native)
  • Salesforce API: How to identify a Case from an email reference code (“[Ref: … :Ref]”)?
  • the IBM_JAVA error for running jobs in Hadoop 2.2.0
  • How can I run an Illustrator javascript on all files in a directory?
  • iOS App crash issue `[UIWindow warpPoint:]`
  • Visual Studio MSB3721 error when compiling a __device__ function call from another file
  • Unable to connect to AWS RDS through PDO
  • UIScrollView does not restore properly
  • Windows biometric framework sample umdf driver: This device cannot start. (Code 10)
  • Why do you need 2 Javascript files for cross-platform Cordova plugin?
  • Spotify cocoalibspotify offline status set to 1 but all tracks stuck at waiting
  • Support of :after in IE7
  • Unable to create Access token grant type in wso2 API manager store to test API
  • How to use Streams api peek() function and make it work?
  • How to change user identity when git pushing via ssh?
  • How to decleare char *const argv[] in swift [duplicate]
  • How to get rgb from transparent pixel in js
  • Computing the discrete fourier transform of audio data with FFTW
  • How to call different template for different category archive page in woocommerce
  • WPF custom control and direct content support
  • Running R's aov() mixed effects model from Python using rpy2