This content has been marked as final.
Show 5 replies
-
Re: Set Author on Document Creation
nilsheuer Jun 25, 2015 12:34 PM (in response to mroldanvega)Hi Manuel!
Jive offers the run-as option that will allow you to post content under a different username (and also change the date posted if needed). It is documented here Core V3 API - Run-As Feature & Signed Add-Ons
There are some security restrictions that you need to be aware of, but besides that it works as advertised on current Jive versions
-
Re: Set Author on Document Creation
kim.nelsonMar 25, 2016 10:02 AM (in response to nilsheuer)
Does that allow us the option to change the author using the api?
-
-
-
Re: Set Author on Document Creation
jleviApr 27, 2016 2:27 PM (in response to mroldanvega)
See also Author Change Add-On FAQ.
-
Re: Set Author on Document Creation
bharatpec Apr 27, 2016 10:57 PM (in response to mroldanvega)Create a JSON object you want to post to JIVE. It would look something like this:
var contentObject = JSON.stringify({ "content": { "type": "text/html", "text": "A new discussion." }, "type": "discussion", "subject": name, "parent": reqUrl + '/api/core/v3/places/' + SpaceId, "users": [{ "id": req.headers['jive-user-id'], //Logged in user ID "emails": [{ "value": req.headers['jive-user-email'], ////Logged in user Email address "jive_label": "Email" }] }], });
You can specify Jive user as a specified id and Email. Try applying this and let me know if it helped you.
Bharat.