403: PERMISSION_DENIED AndroidDeviceProvisioning ZTE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 02:06 PM - edited 10-29-2024 02:07 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 11:36 PM
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