Skip to main content
dcpearl
New Member
Apr 12, 2016 11:05 AM UTC
Solved

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?

dcpearl
dcpearlAnswer
New Member
Apr 14, 2016 11:21 AM UTC

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

 

3 replies

Jeff_FTNT
Staff
Staff
Apr 12, 2016 3:28 PM UTC

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

dcpearl
dcpearlAuthorAnswer
New Member
Apr 14, 2016 11:21 AM UTC

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
Jul 5, 2020 7:23 PM UTC

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

 

 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT