Zero-touch customer API - Terms of Service error (403 permission denied)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi, we are trying to use Customer API according to the documentation: https://developers.google.com/zero-touch/reference/customer/rest/v1/customers
Method: customers.list works fine (GET https://androiddeviceprovisioning.googleapis.com/v1/customers)
I am able to use Oauth2 authentication, get access token and use it for the above.
When trying to use other methods (e.g.
Method: customers.configurations.list) with my access token, I always receive a ToS error:
{
"error": {
"code": 403,
"message": "The user must agree the terms of service for company id XXXXX at https://partner.android.com/zerotouch",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.android.device.provisioning.v1.TosError",
"latestTosAccepted": false
}
]
}
}
How can accept these terms of service and fix the above error? When I open the zero touch portal with the same user, there's no option to accept anywhere (I have the owner role). When terms of service are opened from the bottom left of the screen, there's only CLOSE button, nothing else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey @linchen,
Massive thanks for raising this here. I've spoken with the team and we have created a community service announcement with how to fix this and a bit of background on what is causing the error, take a look here.
If you have tried to do this and it is still not working can you provide me with some more details please and I'll pass it over to the team to look into further.
Thanks again for highlighting this.
Lizzie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey @Lizzie,
We have clicked on the agree option and tested it, but it still doesn't work. Please help to resolve the issue. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks for the update @linchen. I've just sent you a direct message via your community inbox (click on the little envelope in the top right corner of the page), to gather some further detail and look into this a bit more.
Speak to you soon.
Thanks,
Lizzie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hey @linchen,
Just wanted to come back to you on this one. Would you mind double-checking to see if the email address you are using to call the APIs is the one you have accepted the ToS with?
Thanks so much,
Lizzie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Also, are you the administrator of the account in question?
- Celebrating 1 year of the Customer Community in Community off-topic
- What do you like about your work environment(s)? in Community off-topic
- Google Workspace already deleted user issue in Community feedback
- Zero-touch customer API - Terms of Service error (403 permission denied) in Community feedback
- Android Enterprise BYOD Wifi Profile - disable auto-connect not working in Community feedback