IRPCLoginsAdmin.GetPasswordHash

View as Markdown

Administration API / specialized admin session idempotent

Gets the encrypted password hash of an M-Files login, for copying the password to another server with SetPasswordHash.

ServiceServer login accounts MFiles.IRPCLoginsAdmin
gRPC method/MFiles.IRPCLoginsAdmin/GetPasswordHash
HTTP (mf-http-grpc)POST /grpc/v1/get-password-hash
RequestGetPasswordHashRequest
ResponseGetPasswordHashResponse
Book and levelAdministration API, specialized
Kindadmin
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: GetPasswordHashRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
password_encryptionPasswordEncryptionHow to encrypt the hash for transit: set PASSWORD_ENCRYPTION_AES256.Values: PASSWORD_ENCRYPTION_RC4 (0), PASSWORD_ENCRYPTION_UNENCRYPTED (1), PASSWORD_ENCRYPTION_AES256 (2).
public_keybytesThe caller's public key; the hash is encrypted with it.
account_namestringThe name of the account to get password hash from.

Response: GetPasswordHashResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
password_hashstringDeprecated; filled only for old clients. Use password_info.
password_infoPasswordInfoThe encrypted hash with its hash algorithm and salt.
password_info.hashstringPassword hash.
password_info.hash_algorithmPasswordHashAlgorithmPassword hash algorithm.Values: PASSWORD_HASH_ALGORITHM_MD5 (0), PASSWORD_HASH_ALGORITHM_UNDEFINED (1), PASSWORD_HASH_ALGORITHM_PBKDF2_WITH_SHA512_AND100000_ITERS (2).
password_info.saltstringPassword salt.
password_info.encryptionPasswordEncryptionEncryption algorithm used to protect the password hash.Values: PASSWORD_ENCRYPTION_RC4 (0), PASSWORD_ENCRYPTION_UNENCRYPTED (1), PASSWORD_ENCRYPTION_AES256 (2).