Open daniely-93 opened 3 years ago
Hi ! Found out the answer here: https://stackoverflow.com/questions/43536904/google-play-developer-api-the-current-user-has-insufficient-permissions-to-pe
Hi ! Found out the answer here: https://stackoverflow.com/questions/43536904/google-play-developer-api-the-current-user-has-insufficient-permissions-to-pe
is this verified solution?
@daniely-93 did you found a solution on this issue, I tried the stackoverflow solution but still the error persists.
It took me a waiting time for about 24 hours to get the permissions reflected. Modifying the subscription data didn't helped in force reflecting the permission changes. At the end it worked.
Hi @daniely-93 @sandesh-bhoir, I'm getting the same issue even after 24 hours. Did you found a solution on this issue?
Hi @daniely-93 @sandesh-bhoir, I'm getting the same issue even after 24 hours. Did you found a solution on this issue?
The service account you had created needs to be added in https://play.google.com with the respective permissions as shared in screen above.
Hi @sandesh-bhoir where to add service account in google play console, can you please share a link for google play console?
Hi @sandesh-bhoir where to add service account in google play console, can you please share a link for google play console?
They have mentioned steps in documentation. Do check step 4.
Okay Thanks for your time!
I've set up a service account and linked it to Google Play, granted all the permissions including "View financial data" under "API Access" page.
When I am trying to verify a purchase, it throws error 401 even though I been waiting 24 hours maybe until Google servers update. When I call this get API with OAuth2 token, it works so the account has the permissions:
https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.my.package/purchases/products/<productId>/tokens/<purchaseToken>
Relevant code: