Post

2 followers Follow
0
Avatar

Modify DiscussionPost Owner

I am using an automated system to add DiscussionPosts to tasks however the Messages always show up under the account used for the API.

 

Can I specify or update the user that is attached to these messages?

Josh Boutwell Answered

Please sign in to leave a comment.

9 comments

0
Avatar

The API allows you to impersonate another user during the API call. You can add a header to the request called "CallOptions" and set the value to ImpersonateUser=<userName> 

This will perform the API on behalf of the user you entered. You must be an administrator and superuser to be able to impersonate.

Last note: I suggest to set the "Via" field of the discussion post in such situations (i.e. Via="Integration"). The string you put into the via field will appear under the post so users know this was an automatically generated message rather than actually posted by that user.

Eyal Post 0 votes
Comment actions Permalink
0
Avatar

Is it the user name (Text) or the /User/ID (Object Reference)?

Josh Boutwell 0 votes
Comment actions Permalink
0
Avatar

I am still not getting it.  My POST headers are:

 

POST /v2.0/services/bulk/Execute HTTP/1.1
Host: api2.clarizen.com
Accept: */*
Authorization: Session #######-####-####-####-c90a7071f185_23520385
CallOptions: ImpersonateUser=$$$$$$$
Content-Length: 256
Content-Type: application/x-www-form-urlencoded


I have tried:

CallOptions: ImpersonateUser=/User/#####

CallOptions: ImpersonateUser=username

CallOptions: ImpersonateUser=email address

 

 

Any ideas?

 

Josh Boutwell 0 votes
Comment actions Permalink
0
Avatar

No luck with

CallOptions: ImpersonateUser=801fad5e-d811-4afc-9990-13de2b3b2118


Where are the API call options documented?
Josh Boutwell 0 votes
Comment actions Permalink
0
Avatar

Eyal,

 

Has anything turned up regarding this problem?

 

Josh

Josh Boutwell 0 votes
Comment actions Permalink
0
Avatar

A fix will be provided in our next deployment (I believe this coming Sunday) 

Eyal Post 0 votes
Comment actions Permalink