MongoDB.live, free & fully virtual. Register Now MongoDB.live, free & fully virtual. Register Now

List Realm users

I would like to query the Realm server for users, similar to the Realm Studio after you connect to server and when you press button “Users” at the top.

How can I get the same data?
ProviderID
User ID
Role
Realms
Status

Regards

Which version of the SDK are you using? And which server are you talking about - is this the legacy cloud (cloud.realm.io) or MongoDB Realm (realm.mongodb.com)?

1 Like

This is the legacy, cloud.realm.io.
I’m using .net nuget-package:
Realm 5.0.1

Studio reads the /__admin Realm to extract that information. It is a system Realm, so you’ll need an admin user to inspect it. It’s also highly recommended that you don’t make any modifications to it, or you can prevent the server from starting. To inspect the schema and/or export model classes, you can open it in Studio by unchecking the “Hide system Realms” option.

1 Like