Updating App Users from third-party auth

Hello,

I am using Atlas App Services with custom JWT (3rd party auth provider) and I would like some advice on how Atlas App users can be updated/ deleted.

Currently,

  • Custom JWT auth creates a user in Atlas App
  • Auth Trigger creates a user document in my db

Suppose a user updates their details that are metadata in Atlas App user via the auth provider. How can the changes be reflected?

I have taken a look at Manage User Accounts. Can this be done via an Atlas function?

Since I am able to create webhooks from the auth provider on user update or delete, would it be possible to call a function in Atlas App to update or delete the corresponding user?