Fortinet white logo
Fortinet white logo

Update organization user

Update organization user

Method

URL

Description

Arguments

Outputs

PATCH

account/organization/users/{uid}/

Update an organization user

User ID

JSON array

Arguments (URL)

Parameter

Type

Description

uid

int

The user ID

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

sites

array

An array of organization site IDs

Outputs

Parameter

Type

Description

JSON array

The new organization user record.

Example request

curl -k -X PATCH -H "Content-Type: application/json" -H "Authorization: Token 9fb3fa217a23edbf50c8c358dab61beb07f6e8a191ecc597568f45e9455846e6" -d '{"phone": "555-555-5555", "first_name": "Testing"}' "https://<ip_address>/fpc/v1/api/account/organization/users/1/"

Example response

{

"address1" : "",

"address2" : "",

"auth_backend" : "local",

"city" : "",

"country" : "",

"customer" : 4,

"email" : "",

"fax" : "",

"first_name" : "Testing",

"global_two_factor_enabled" : false,

"id" : 1,

"is_active" : true,

"last_name" : "",

"phone" : "555-555-5555",

"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" : ""

}

Update organization user

Update organization user

Method

URL

Description

Arguments

Outputs

PATCH

account/organization/users/{uid}/

Update an organization user

User ID

JSON array

Arguments (URL)

Parameter

Type

Description

uid

int

The user ID

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

sites

array

An array of organization site IDs

Outputs

Parameter

Type

Description

JSON array

The new organization user record.

Example request

curl -k -X PATCH -H "Content-Type: application/json" -H "Authorization: Token 9fb3fa217a23edbf50c8c358dab61beb07f6e8a191ecc597568f45e9455846e6" -d '{"phone": "555-555-5555", "first_name": "Testing"}' "https://<ip_address>/fpc/v1/api/account/organization/users/1/"

Example response

{

"address1" : "",

"address2" : "",

"auth_backend" : "local",

"city" : "",

"country" : "",

"customer" : 4,

"email" : "",

"fax" : "",

"first_name" : "Testing",

"global_two_factor_enabled" : false,

"id" : 1,

"is_active" : true,

"last_name" : "",

"phone" : "555-555-5555",

"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" : ""

}