Overview
Applications using the M-Files API may produce errors similar to:
Error in MFile_UploadFile: The remote server returned an error: (403) Forbidden…..
Encountered error while Processing MFile Upload : [directory]….
"Exception": {
"Name": "UnauthorizedAccessException",
"Message": "Login to vault failed"
In some instances, this is a result of relying on a login account synced from an external system (such as Azure AD), which can cause such issues if a password expired or the account is disabled. There are times when the use of an M-Files Authenticated login account is not only appropriate but desired.
Solution
By using an M-Files authentication login account it will avoid needing to synchronize with external systems and not as subject to change. Note that if your primary login account source is AD, you may need to have M-Files cloud operations assist in getting an M-Files account established.
