# Setting createdBy user via Workflow API

**URL:** <https://forum.bubble.io/t/setting-createdby-user-via-workflow-api/251153>\
**Category:** Need help\
**Created:** [March 10, 2023, 5:50pm UTC](https://forum.bubble.io/t/setting-createdby-user-via-workflow-api/251153 "2023-03-10T17:50:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GenerativeLabs](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/generativelabs/32/162414_2.png) [@GenerativeLabs](https://forum.bubble.io/u/GenerativeLabs)\
**Post date:** [March 10, 2023, 5:50pm UTC](https://forum.bubble.io/t/setting-createdby-user-via-workflow-api/251153/1 "2023-03-10T17:50:23Z")

</div>

**Question** : Is it possible to set the createdBy user when creating a thing via the API Workflow?

**What I’m trying to do:** I am invoking an external API that does a callback to a webhook that points to an API Workflow URL. All of this is working awesomely. Challenge is, I want the createdBy user to be the user that initiated external the API call.

**What I’ve tried so far:** I have the email address of the user available in the payload to the webhook, but I can’t seem to write/overwrite the thing’s createdBy user. So I created my own “madeBy” field that allows me to do this. Just seems duplicative and was wondering if anything had changed in the time since [this post described the same challenge](http://forum.bubble.io/t/changing-the-value-of-created-by/50388) 4 years ago.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [March 10, 2023, 6:10pm UTC](https://forum.bubble.io/t/setting-createdby-user-via-workflow-api/251153/3 "2023-03-10T18:10:57Z")

</div>

You can, if you use a specific auth process so the user that is calling API Workflow is authenticated.  
[https://manual.bubble.io/help-guides/apis-connect-to-other-apps/the-bubble-api/authentication/as-a-user](https://manual.bubble.io/help-guides/apis-connect-to-other-apps/the-bubble-api/authentication/as-a-user)

Bubble also have oauth2 authorization code WF but not described in documentation. There’s some topic about it in the forum.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 19, 2023, 5:50pm UTC](https://forum.bubble.io/t/setting-createdby-user-via-workflow-api/251153/4 "2023-05-19T17:50:50Z")

</div>

Closed on May 19, 2023, 5:50pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
