Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Azure Devops with Google Play Android Developer API throws 'The caller does not have permission'

I'm setting up a azure pipeline to publish my app to the Google play store but I am getting the following error when trying to use the Google Play Release Task from the Microsoft store:

 

2023-12-07T16:22:25.7975266Z ##[section]Starting: Release com.xxx.xxxto internal
2023-12-07T16:22:25.8086073Z ==============================================================================
2023-12-07T16:22:25.8086209Z Task         : Google Play - Release
2023-12-07T16:22:25.8086286Z Description  : Release an app to the Google Play Store
2023-12-07T16:22:25.8086386Z Version      : 4.232.0
2023-12-07T16:22:25.8086451Z Author       : Microsoft Corporation
2023-12-07T16:22:25.8086534Z Help         : https://marketplace.visualstudio.com/items?itemName=ms-vsclient.google-play
2023-12-07T16:22:25.8086645Z ==============================================================================
2023-12-07T16:22:27.8272488Z Authenticated with Google Play and getting new edit
2023-12-07T16:22:28.1725071Z ##[error]Error: The caller does not have permission
2023-12-07T16:22:28.1886386Z ##[section]Finishing: Release com.xxx.xxx to internal

 

 

 

 

 

When checking the API in the google cloud Enabled APIs & Services section, it shows it received 2 requests that failed. So I assume the Task of the pipeline hits the right endpoint.

daihaile_0-1701967510669.png

I did the following steps to set up the connection:

  • creating a new project
  • activating the Google Play Android Developer API
  • navigate to IAM -> Service account
  • create new account with role owner (a lot of guides say Role Manager, but I don’t see the role in the dropdown)
  • Keys -> Add key -> Create new key -> download json
  • add new service connection with the services account email and private key from the json file
  • upload json file in secure files and create download secure file task
  • in google play release task use service connection and json auth file

Did I forget a step to grant access here?

 

 

1 5 3,823
5 REPLIES 5
Top Labels in this Space
Top Solution Authors