Skip to main content
dcpearl
New Member
April 12, 2016
Solved

Create Guest User account by GUI/CLI

  • April 12, 2016
  • 2 replies
  • 13464 views

According to FortiOS Handbook (Version 5.4), to create guest user account I need to create a guest type user group, then create user under guest management. My environment (school) would like to specify username instead of using autogenerated user0xx. Therefore I have to create a new one/change after auto-generated guest account. I found this process tedious when I have to create/edit a bunch of users a day. 

 

The handbook didn't state the way to create guest user account under command line. Is it possible to do so under CLI?

Best answer by dcpearl

Thanks Jeff.

 

It saves me a lot of time.

I leave my example for anyone who read this thread later

 

dia test guest add testgroup stuA stuA 12345678 "" "" "" "" 7200

 

2 replies

Jeff_FTNT
Staff
Staff
April 12, 2016

Try CLI:dia test guest  ?   list    List guest users. del     Delete guest users. add     Add a guest user.

dcpearl
dcpearlAuthorAnswer
New Member
April 14, 2016

Thanks Jeff.

 

It saves me a lot of time.

I leave my example for anyone who read this thread later

 

dia test guest add testgroup stuA stuA 12345678 "" "" "" "" 7200

 

JoelMSnyder
New Member
July 5, 2020

Just to add a tiny bit to dcperal's note:

 

To add users, the fields are (optional fields in <optional> angle brackets):

group, user-id, <user-name>, <password>, <mobile-phone>, <sponsor>, <company>, <email>, <expire>, <comment>

 

To delete, the fields are:

<group>, <user>

 

To list, the fields are:

<group>, <user>

 

jms