Fortinet black logo

FortiLAN Cloud User Guide

IAM Users

IAM Users

The IAM users can authenticate with FortiLAN Cloud and obtain access token with the following web call (Global domain is used in this example).

Request

$ curl https://fortilan.forticloud.com/api/v1/auth -H 'Content-Type: application/json' -d '{"accountId":"acct1@example.com","userName":"user2","password":"1234", "type":"iamuser"}'

The type parameter is to be set to iamuser. If this parameter is not provided then it defaults to emailuser.

Ensure that the IAM user is created with Admin role for FortiLAN Cloud portal. Invalidate the access token after it is no longer required as for Email users in the preceding section.

IAM Users

The IAM users can authenticate with FortiLAN Cloud and obtain access token with the following web call (Global domain is used in this example).

Request

$ curl https://fortilan.forticloud.com/api/v1/auth -H 'Content-Type: application/json' -d '{"accountId":"acct1@example.com","userName":"user2","password":"1234", "type":"iamuser"}'

The type parameter is to be set to iamuser. If this parameter is not provided then it defaults to emailuser.

Ensure that the IAM user is created with Admin role for FortiLAN Cloud portal. Invalidate the access token after it is no longer required as for Email users in the preceding section.