Skip to main content
New Member
October 29, 2024
Question

403: PERMISSION_DENIED AndroidDeviceProvisioning ZTE

  • October 29, 2024
  • 1 reply
  • 0 views

I have implemented the AndroidDeviceProvisioning client sucessfully.

I have added scope "https://www.googleapis.com/auth/androidworkzerotouchemm" to my accesstoken.

This is the error I am getting:

"code": 403, "errors": [ { "domain": "global", "message": "The caller does not have permission", "reason": "forbidden" } ], "message": "The caller does not have permission", "status": "PERMISSION_DENIED"

 

Which permission here is being denied? Or what permissions do i need to get from my end? Currently the account i am fetching the devices from is our own account itself, so i have access to the ZTE portal as well.

1 reply

Lizzie
Community Manager
November 7, 2024

Hello @Sarahshk,

 

I hope you are doing well. Thanks for your question here.

 

Sorry to see you are only just getting a reply. I have asked a colleague about this:

 

On the surface and based on the error pasted and the API implemented, the error sounds like the caller is unauthorized, and its probably due to invalid or mismatched OAuth access token. You can try check if the keys match. Regenerating the key might also make sense. If that doesn't fix the issue, here is a guide on (Best Practices for API Keys) that you can try [https://developers.google.com/zero-touch/guides/customer/auth#best_practices_for_api_keys]

 

More guidance on the (said API) [https://developers.google.com/zero-touch/guides/customer/auth]

 

Does this help at all? 

 

Thanks,

Lizzie

Welcome to the Community everyone!Have a question or want to start a conversation, click here.