-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass profile resource into Bots #2790
Labels
bots
Features and fixes related to bots and automation
Milestone
Comments
Quick and dirty workaround: In the bot, run this at the beginning await medplum.setActiveLogin(medplum.getActiveLogin()); For us to fix this the "right way" has a few hops:
Because of the "bot lambda layer" pattern, we need a published version of |
Not burning, happy to wait for the new version, but appreciate the workaround |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use Case
User driven: https://discord.com/channels/905144809105260605/1142177596856082533/1142177596856082533
When using a bot using 3rd party APIs like Stripe, the developer would like make sure they have the
Patient
resource of the bot invoker, to make sure they bill the correct account.Proposal
The Bot "Run As User" feature sets the access token of the
MedplumClient
that is passed in, but does not set the profile resource. The proposal is to set both the accessToken and profileResource in the MedplumClient before passing it into the handler functionThe text was updated successfully, but these errors were encountered: