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;