How to access files in a sharepoint library through http nodes?

It appears you are mixing up Microsoft’s 2 different types of Oauth.

Delegated Type

If you have created a “system” user for “delegated” Oauth access, that user must be granted permission to access the specific files/folders. Then, if you.

  • “connect” your Microsoft Graph Security Oauth2 API Credentials item, using that “system” user
  • accept all the granted (delegated) permissions
  • the node functions should work without getting 401/403/etc.

Application Type

If you need to use the “application” type Oauth

  • Create a generic OAuth2 API credential type, set the Grant Type to Client Credentials
  • configure the Access Token URL, Client ID, etc.
  • There is no user associated with this type of credential, so granting granular permissions to a particular user won’t affect anything.