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

Create Guest User account by GUI/CLI

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?

2 Solutions
Jeff_FTNT
Staff
Staff

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

View solution in original post

dcpearl
New Contributor

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

 

View solution in original post

3 REPLIES 3
Jeff_FTNT
Staff
Staff

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

dcpearl
New Contributor

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

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

 

 

Labels
Top Kudoed Authors