Skip to main content
Staff & Editor
June 10, 2022

Technical Tip: FortiAuthenticator Preview local users using REST API

  • June 10, 2022
  • 0 replies
  • 929 views
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

 

 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!