0

I am trying to provide access to folders that have been created using a Rest API call using a Service account (The folders are created and the return values are proper).. but when I try to add a user delegation (using the sub in the JWT header), i keep getting a unauthorized user. I have checked the Service Account creation and everything seems right there. Any pointers?

Swami
  • 1

1 Answers1

0

Make sure that your request includes the Authorization header with a valid token. Try also to refresh your access token using the long-lived refresh token. If this fails, direct the user through the OAuth flow, as described in Authorizing Your App with Google Drive.

Check these links:

Community
  • 1
  • 1
abielita
  • 13,147
  • 2
  • 17
  • 59