IRPCLoginsAdmin.SetPasswordHash

View as Markdown

Administration API / specialized admin session idempotent

Sets the password of an M-Files login from a password hash, for example one read with GetPasswordHash on another server.

ServiceServer login accounts MFiles.IRPCLoginsAdmin
gRPC method/MFiles.IRPCLoginsAdmin/SetPasswordHash
HTTP (mf-http-grpc)POST /grpc/v1/set-password-hash
RequestSetPasswordHashRequest
ResponseSetPasswordHashResponse
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: SetPasswordHashRequest

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

FieldTypeDescription
account_namestringThe name of the account to set password hash to.
password_hashstringDeprecated; leave empty and use password_info.
password_infoPasswordInfoThe password hash with its algorithm, salt and transit encryption.
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).

Response: SetPasswordHashResponse

No fields.