Fortinet white logo
Fortinet white logo

Create organization user

Create organization user

Method

URL

Description

Arguments

Outputs

POST

account/organization/users/

Create a new organization user

Organization unique identifier

JSON array

Arguments (JSON payload)

Parameter

Type

Description

service_provider

int

The service provider ID

customer

int

Organization id

username

string

The username of the new user

password

string

The password for the new user

confirmed_password

string

Confirm the password.

role

int

The ID of the role for the new user

two_factor_enabled

bool

Set to false. Users with two-factor authentication enabled cannot be created through the API.

sites

array

An array of organization site IDs

Outputs

Parameter

Type

Description

user

JSON array

The new organization user record.

Example request

curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Token 490f80823bf377e0b3e41476c0d576e448246be15b6b9d64f5c71a69daf24aee" -d '{"customer": "4", "username": "another_test_user", "password": "12345", "confirmed_password": "12345", "role": "2", "service_provider": 1, "sites": [2]}' "https://<ip_address>/fpc/v1/api/account/organization/users/"

Example response

{

"address1" : "",

"address2" : "",

"auth_backend" : "local",

"city" : "",

"country" : "",

"customer" : 4,

"email" : "",

"fax" : "",

"first_name" : "",

"global_two_factor_enabled" : false,

"id" : 16,

"is_active" : true,

"last_name" : "",

"phone" : "",

"pwdEnable" : false,

"pwdLength" : 8,

"pwdLowercase" : false,

"pwdNumbers" : false,

"pwdSpecialcharacters" : false,

"pwdUppercase" : false,

"role" : 2,

"service_provider" : 1,

"sites" : [

2

],

"state" : "",

"two_factor_enabled" : false,

"username" : "another_test_user",

"zip" : ""

}

Create organization user

Create organization user

Method

URL

Description

Arguments

Outputs

POST

account/organization/users/

Create a new organization user

Organization unique identifier

JSON array

Arguments (JSON payload)

Parameter

Type

Description

service_provider

int

The service provider ID

customer

int

Organization id

username

string

The username of the new user

password

string

The password for the new user

confirmed_password

string

Confirm the password.

role

int

The ID of the role for the new user

two_factor_enabled

bool

Set to false. Users with two-factor authentication enabled cannot be created through the API.

sites

array

An array of organization site IDs

Outputs

Parameter

Type

Description

user

JSON array

The new organization user record.

Example request

curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Token 490f80823bf377e0b3e41476c0d576e448246be15b6b9d64f5c71a69daf24aee" -d '{"customer": "4", "username": "another_test_user", "password": "12345", "confirmed_password": "12345", "role": "2", "service_provider": 1, "sites": [2]}' "https://<ip_address>/fpc/v1/api/account/organization/users/"

Example response

{

"address1" : "",

"address2" : "",

"auth_backend" : "local",

"city" : "",

"country" : "",

"customer" : 4,

"email" : "",

"fax" : "",

"first_name" : "",

"global_two_factor_enabled" : false,

"id" : 16,

"is_active" : true,

"last_name" : "",

"phone" : "",

"pwdEnable" : false,

"pwdLength" : 8,

"pwdLowercase" : false,

"pwdNumbers" : false,

"pwdSpecialcharacters" : false,

"pwdUppercase" : false,

"role" : 2,

"service_provider" : 1,

"sites" : [

2

],

"state" : "",

"two_factor_enabled" : false,

"username" : "another_test_user",

"zip" : ""

}