question

adiel avatar image
adiel asked

Google Redeem

Hi,

I'm getting this error when trying to RedeemGooglePlayInventoryItemsAsync

"Marketplace API 'PurchasesProductsGet' in environment 'Production' returned HTTP status code '401', error code '401', and error message 'The current user has insufficient permissions to perform the requested operation.' for AlternateId 'item.sword.wooden'."

Google service account permission is "Service Account User"

We tried the answer from this StackOverflow thread (changing product id's and saving) https://stackoverflow.com/questions/43536904/google-play-developer-api-the-current-user-has-insufficient-permissions-to-pe

but it's still not working

In-Game Economy
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

Since the error message says “'The current user has insufficient permissions”, you may try set the service account permission to “Service Account Admin”, “Service Account Key Admin” and “Service Account Token Creator” instead of “Service Account User” to see if the issue persists.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

adiel avatar image adiel commented ·

We don't want to give it Admin access...

In your documentation it says "Service Account Actor" which does not exist anymore, do you know which one replaces it?

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha adiel commented ·

Sorry that some parts of PlayFab's documentation are out of date. The “Service Account Actor” role is deprecated. If you don’t want to give admin access, you could try setting the service account role to both “Service Account User” and “Service Account Token Creator”.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.