Server login accounts (IRPCLoginsAdmin)

View as Markdown

Manages the server's login accounts: list, add, modify and remove logins, force logouts, look up Windows accounts and groups, and handle password resets.

Use this interface to add, modify and delete logins.

gRPC serviceMFiles.IRPCLoginsAdmin
Book and levelAdministration API, specialized
Methods19
Proto filemfiles/IRPCLoginsAdmin.proto

Overview

A login account is the server-level identity (M-Files or Windows authentication, server roles, license type) that user accounts in vaults are linked to. This is the service behind the "Login Accounts" node of M-Files Admin. Applications rarely need it; provisioning and audit scripts can use it.

Sessions and rights. A server-level session is enough (log in with login_data.vault_guid = {00000000-0000-0000-0000-000000000000}); a vault session works too. Most methods require the system administrator server role (server right manage_logins in ServerAccess); a vault administrator does not have it, and the call fails with "Access denied. You do not have the server-level access rights required by this operation." (0x800400A8, 0x800407E4). Exceptions:

Methods by task:

A login is identified by its account name: the user name for M-Files logins, the down-level logon name (domain and user name separated by a backslash) for Windows logins. Server roles and the enabled state are in SRVROLES: a login without can_log_in is disabled.

Methods

MethodSummaryFacts
AddLoginAdds a login account to the server.admin session
CreatePasswordResetRequestStarts the "forgot password" flow for an M-Files login: sends the user an e-mail with a password reset link.admin no session
CreatePasswordResetRequestAdminCreates a password reset link for an M-Files login, returns it, and optionally e-mails it to the user.admin session
ForceLogoutEnds all sessions of the given login accounts in every vault on the server.admin session
GetAllDomainsLists the Windows domains that the server computer can reach, including its own.admin session idempotent
GetComputerNameGets the name of the server computer.admin session
GetDomainNameGets the Windows domain of the server computer, or the computer name if it is not in a domain.admin session idempotent
GetFullNameAndEmailLooks up the full name and e-mail address of a Windows account in its directory.admin session idempotent
GetLoginGets one login account by account name.admin session
GetLoginsGets the login accounts the caller is allowed to see: all of them for system administrators, otherwise those linked to vaults the caller administers.admin session idempotent
GetLoginsWithSessionsGets the login accounts that currently have open sessions on the server.admin session idempotent
GetOrganizationalUnitsForDomainLists the organizational units of a Windows domain.admin session idempotent
GetPasswordHashGets the encrypted password hash of an M-Files login, for copying the password to another server with SetPasswordHash.admin session idempotent
GetWindowsGroupMembersLists the users and groups that are members of a Windows group.admin session idempotent
GetWindowsGroupsLists Windows groups that the server can see: local groups and domain groups.admin session idempotent
ModifyLoginChanges a login account: its server roles and enabled state, and optionally its password, full name, e-mail address and license type.admin session idempotent
RemoveLoginRemoves a login account from the server.admin session
ResetPasswordCompletes the "forgot password" flow: sets a new password for a login with the values from the password reset link.admin no session
SetPasswordHashSets the password of an M-Files login from a password hash, for example one read with GetPasswordHash on another server.admin session idempotent