# Get current username from within a 3rd party chatbot

**URL:** https://meta.discourse.org/t/get-current-username-from-within-a-3rd-party-chatbot/170906
**Category:** Support
**Created:** [November 22, 2020, 8:58am UTC](https://meta.discourse.org/t/get-current-username-from-within-a-3rd-party-chatbot/170906 "2020-11-22T08:58:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Krischan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krischan/32/47290_2.png) [@Krischan](https://meta.discourse.org/u/Krischan)
#### Post date: [November 22, 2020, 8:58am UTC](https://meta.discourse.org/t/get-current-username-from-within-a-3rd-party-chatbot/170906/1 "2020-11-22T08:58:10Z")

</div>

We are running a 3rd party chatbot on our Discourse site to explain things and onboard new users. As a next step it would be great, if the bot knows the currently logged in user to provide additional services. Is it theoretically possible to get the current username from within a chatbot that runs within an iframe? (The bot can run custom scripts.) If so, where would I start? Thank you!
