shuying42
06/15/2024, 3:14 AMreshma
06/17/2024, 3:55 PMshuying42
06/17/2024, 4:06 PMreshma
06/17/2024, 4:12 PMshuying42
06/17/2024, 5:09 PMreshma
06/17/2024, 5:41 PMreshma
06/17/2024, 5:42 PMshuying42
06/17/2024, 5:48 PMshuying42
06/17/2024, 5:55 PMreshma
06/17/2024, 6:57 PMshuying42
06/17/2024, 8:37 PMshuying42
06/17/2024, 8:38 PMreshma
06/17/2024, 11:54 PMshuying42
06/18/2024, 1:24 AMreshma
06/18/2024, 2:44 AMshuying42
06/18/2024, 7:08 AMMEDPLUM_CLIENT_ID and MEDPLUM_CLIENT_SECRET using the client application of the actual project but got "Forbidden" when running medplum bot create command. I was only able to run npx medplum bot create <bot-name> <project-id> <source-file> <dist-file> as the super admin. Is there something I am missing?reshma
06/18/2024, 4:22 PMmedplum login from the command line? Then log in with your admin account and try again?
Here's the bot deploy guide https://www.medplum.com/docs/bots/bots-in-production#deploying-your-botshuying42
06/18/2024, 5:38 PM.env and ~/.medplum/default.json, ran medplum login using an admin account but still got "Forbbiden". The admin account is not a super admin account. The same account can create, deploy and execute bot on using the app UI.shuying42
06/18/2024, 5:42 PMServer: <my_server_domain>
Profile: hona-dev-client (ClientApplication/<uuid>)
Project: honacare dev (Project/<uuid>)
My guess is that the profile might be incorrect. I am not supposed to use any client application.shuying42
06/18/2024, 5:49 PMbot create still used the client credential. After I cleared MEDPLUM_CLIENT_ID and MEDPLUM_CLIENT_SECRET, it works! There are lots of nuances so hopeful the next person don't make my mistakes.reshma
06/18/2024, 5:52 PMshuying42
06/18/2024, 5:56 PMshuying42
06/19/2024, 3:21 PMmedplum login, I only set client id, client secret and base url in a new terminal. Then running bot create would turn into this error.rahul1
06/19/2024, 5:23 PMClientApplication also has admin privileges.
You can got to the client admin page here, click on your client, and the click the "Admin" checkbox
https://app.medplum.com/admin/clientsshuying42
06/19/2024, 5:30 PM