| Description |
This article describes the behavior where device endpoints are not accessible anymore via API after switching to OUs in the Support site.
Custom monitoring or integration scripts that previously worked begin failing with an authentication-related error, despite valid credentials and access tokens.
OAuth authentication completes successfully and returns a valid access_token. API calls to individual device endpoints continue to work. API call to retrieve all devices fails:
Error returned:
|
| Scope | FortiGate Cloud API. |
| Solution |
When Organizational Units (OUs) are enabled in the Fortinet Support Portal, the FortiGate Cloud API requires an explicit account context for certain endpoints. The /devices endpoint no longer defaults to a single account and therefore requires the account_id parameter to be specified.
Append the account_id query parameter to the /devices endpoint. Corrected endpoint:
Example to EU region:
How to find the account ID:
Additional notes:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.