FortiAuthenticator
FortiAuthenticator provides centralized authentication services for the Fortinet Security Fabric including multi-factor authentication, single sign-on services, certificate management, and guest management.
Hawada1
Staff
Staff
Article Id 214305
Description This article describes how to import cURL Script to Postman in order to preview local user details.
Scope FortiAuthenticator.
Solution

To enable the API, create a new user or edit an existing one and specify the following:

 

1) Under User Role, select Administrator.

2) Enable Web service access.

3) Select OK to save the details.

4) Make a note of the API Web Service Access Key.

 

The easiest way to build a rest API request in Postman is by simply importing the cURL script and import it into Postman.

 

cURL script example:


# curl -k -v -u "admin:<admin-api-key>"  https://192.168.x.x/api/v1/localusers/?format=json

 

1) Save the cURL script to a notepad.

 

Hawada1_0-1654837229193.png

 

Import the cURL script to Postman following the steps.

 

Hawada1_1-1654837301258.png

 

Then select 'Import'.
Once imported, a new tab will automatically will be created for the API Query.

 

Hawada1_2-1654837341738.png

 

Select on 'Send', and it will display the local users created on FortiAuthenticator.


API response.jpg

 

 

Contributors