Skip to main content
Korozo
Explorer
November 30, 2022
Solved

Authenticator Token Delivery Method Bulk Change

  • November 30, 2022
  • 3 replies
  • 6740 views

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?

Best answer by 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

 

3 replies

funkylicious
SuperUser
SuperUser
November 30, 2022

Hi,

You could try and reiterate through the API to change/UPDATE the token type for the users.

Here's the doc for LDAP users, assuming they are imported from it.

Did not tried this myself, but it's worth a try.

"jack of all trades, master of none"
Korozo
KorozoAuthor
Explorer
November 30, 2022

Thanks i'll take a look

nancyharvey
New Member
March 9, 2023

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 Member
June 26, 2023

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!