Realm Admin API

We have a collection of users with email addresses from a different database. We want to make each one of those users an authentication account for the email/password provider.

We were considering using the Realm Admin API, since there appears to be no library within Functions to accomplish this task. All the examples in the Realm Admin API docs are written for curl. We are struggling to write these requests in JavaScript. We are using the Realm Function tool with the context.http methods to perform the HTTP requests.

Does anyone have any tips or references to other docs that could help us?

Hi @Jake_O_Toole,

If you could provide me with the code/function link I can try to help you.

In general, the context.http should be set with a header having the correct access_token as a Berear created from an Atlas API login. The body should include the object describing the user fields…