You are currently browsing legacy 3.5 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: How to retrieve user info?

GetUserInfo used to retrieve the user info

Syntax

UserInfo GetUserInfo();
Return Value
UserInfo Retrieve the user info.

Example I

var info = store.DatabaseCommands.GetUserInfo();
var isAdmin = info.IsAdminCurrentDb;
List<DatabaseInfo> databases = info.Databases;