According to the Realm Admin API docs, it’s possible to run a command associated with a service:
My project has a single mongodb-atlas service that I’d like to interact with via the Realm API, but I’m not sure what the acceptable {commandName}s are. I’ve tried using some of these operations (https://docs.mongodb.com/manual/reference/command/) as a reference, but of the ones I’ve tried, the only one that worked was ‘listCollections’ (which I had to provide in the URL as “list_collections”) – all the other commands return a 404 Not Found with this body:
{
"error": "command not found on MongoDB service",
"error_code": "ServiceCommandNotFound"
}
My immediate goal is to retrieve custom user data (https://docs.mongodb.com/realm/sdk/ios/advanced-guides/custom-user-data/) for any and all users of my choosing. This is seemingly not possible using the Realm web SDK as it will only retrieve the custom user data associated with the Realm user you are currently logged in with. I’m hoping the Realm Admin API will provide an avenue for this.
Thanks in advance for any assistance.