Share via

What's the difference between the Credentials API and MSAL API?

underwood 20 Reputation points
2025-01-14T01:29:59.91+00:00

I wrote two programs that used the MSAL API and Credentials API respectively. However,the Credentials API can upload files to onedrive normally,while the MSAL API can‘t upload files to the old account of onedrive. What's the difference between two API?

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

Answer accepted by question author

Jiajing Hua 18,110 Reputation points Moderator
2025-01-14T08:28:26.95+00:00

Hi @underwood

Based on my knowledge, MSAL API enforce accounts to be authenticated with Azure AD. If the old account has not been migrated to Azure AD, it may cause access failure.

Older OneDrive accounts are more likely to be supported Credentials API, as it may leverage pre-existing legacy authentication mechanisms or cached credentials.

As your issue is related to API. It is recommended that you post the thread to OneDrive for Developer forum for more comprehensive information:

https://techcommunity.microsoft.com/category/onedriveforbusiness/discussions/onedrivedeveloper

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

Thank you for your understanding.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.