Fortinet white logo
Fortinet white logo

Online Help

Get Account Role

Get Account Role

Description

Get user account details.

URL

/api/v1/account/role

Method: GET

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiCWP

roleId

<72734>

Long

Login user identity

Content-Type application/json String

Sample Request

Request URL

GET https://www.forticwp.com/api/v1/account/role

Request Header

Authorization: Bearer <Authorization_Token>

roleid: 1

Content-Type: application/json

Response Variables

Name

Type

Description

loginType String Role of the log in user (admin or sub-account)
userName String User name of the FortiCWP account
email String Email of the FortiCWP account

Sample Response

{

"loginType":"FCARE_ADMIN",

"userName":"casb qacasb1",

"email":"qa.casb1@gmail.com"

}

Get Account Role

Get Account Role

Description

Get user account details.

URL

/api/v1/account/role

Method: GET

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiCWP

roleId

<72734>

Long

Login user identity

Content-Type application/json String

Sample Request

Request URL

GET https://www.forticwp.com/api/v1/account/role

Request Header

Authorization: Bearer <Authorization_Token>

roleid: 1

Content-Type: application/json

Response Variables

Name

Type

Description

loginType String Role of the log in user (admin or sub-account)
userName String User name of the FortiCWP account
email String Email of the FortiCWP account

Sample Response

{

"loginType":"FCARE_ADMIN",

"userName":"casb qacasb1",

"email":"qa.casb1@gmail.com"

}