Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Korozo
New Contributor II

Authenticator Token Delivery Method Bulk Change

Hello,

On Forti Authenticator we are sending vpn token through sms to our users, we have 1.100 users on the system, sometimes sms provider goes down and we have to change "Deliver token code by" setting to email manually for all users, as you can imagine it takes long time, i was wondering is there any CLI or API method to change "Deliver token code by" setting for all user at once?

1 Solution
funkylicious

Nice, you managed to brake the first barrier.

 

Next, you would have to loop through all the users either in Postman or with a Python script.

The URL should be something like below (if Postman is used) where the variable is passed from a list/array with all the users in question, which you got from the previous command, GET.

 

 

 

https://10.0.0.112/api/v1/ldapusers/{{user}}/

 

 

L.E. sorry I cant give you more exact examples of what should be done, i'm struggling to get any results returned on my end

 

geek

View solution in original post

geek
14 REPLIES 14
funkylicious

Nice, you managed to brake the first barrier.

 

Next, you would have to loop through all the users either in Postman or with a Python script.

The URL should be something like below (if Postman is used) where the variable is passed from a list/array with all the users in question, which you got from the previous command, GET.

 

 

 

https://10.0.0.112/api/v1/ldapusers/{{user}}/

 

 

L.E. sorry I cant give you more exact examples of what should be done, i'm struggling to get any results returned on my end

 

geek
geek
Korozo
New Contributor II

I owe you a cold beer man, here is what i did;

-exported results to a csv

-Created bulk change script

-in Postman used Run Collection option 

-Set csv as data source

-Choose Bulk script

-Run

 

1.100 user's token delivery method changed from sms to dual in 1 minute. Many thanks for your time & support

001.png

funkylicious

Glad you sorted it out.

 

For my issue, its apparently related with the fact that I have a port fwd for https://FAC on another port, https://FAC:YYYY because I access it via public IP.

 

From a host in LAN, i get returned the correct values and not :

{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 0}, "objects": []}

 

geek
geek
nancyharvey
New Contributor

Expert Home Solutions is a reputable company that offers a wide range of services, including air conditioning services. Their team of experts can help with everything from installation and repair to routine maintenance and cleaning. They have the knowledge and expertise to work with all types of air conditioning systems and ensure that your unit is running at maximum efficiency. With years of experience in the industry, you can trust Expert Home Solutions to provide top-notch air conditioning services that will keep you cool and comfortable all year round. Contact them today to schedule an appointment and experience their exceptional services for yourself. https://experttoday.pro/air-conditioning/

jhonkriston412
New Contributor

Hello,

We are currently using SMS delivery for VPN tokens on Forti Authenticator, but when our SMS provider experiences downtime, we have to manually switch the "Delivery token code by" setting to email for all 1,100 users. This process is time-consuming. Is there a CLI or API method available to change this setting for all users simultaneously?

Thanks!

Labels
Top Kudoed Authors