Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Get /user/{id}/get-policy

Get /user/{id}/get-policy

Description

Returns the policy info for a user based on the provided user it.

Request Parameter

Id, the user record DBID.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Sample Request

Request URL

GET https://10.106.94.152:8443/api/v2/user/3/get-policy

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "success",

"errorMessage": null,

"accessPolicy": null,

"accessPolicyDebug": ""

"supplicantPolicy": null,

"supplicantPolicyDebug": ""

"epcPolicy": null,

"epcPolicyDebug": ""

"portalPolicy": null,

"portalPolicyDebug" ""

"authenticationPolicy": {

"dbid": 3,

"rank": 2,

"version": 0,

"lastModifiedBy": "admin",

"lastModifiedDate": "2023-09-21T22:58:21.000+0000",

"name": "Guest Self-Registration Access Policy 2",

"note": "",

"profile": {

"lastModifiedBy": "admin",

"lastModifiedDate": "2023-09-21T22:58:21.000+0000",

"DBID": 3,

"name": "Role Test 3",

"note": "",

"locationOperator": "OR",

"groupOperator": "OR",

"GUID": null,

"globalModifiedDate": "2023-09-21T22:58:21.000+0000",

"groupNames": [],

"weeklySchedule": {

"version": 1.1,

"startTimeOfDay": -1,

"endTimeOfDay": -1,

"daysOfWeek": -1,

"alwaysOn": true,

"validTime": true,

"endTimeOfDayAM": true,

"startTimeOfDayAM": true,

"startTimeOfDayHours": 12,

"endTimeOfDayHours": 12,

"startTimeOfDayMinutes": -1,

"endTimeOfDayMinutes": -1

},

"groupIDs": [],

"locationIDs": [],

"filterSet": [],

"locationNames": [],

"radiusFilterSet": [],

"catchAll": true

},

"configuration": {

"name": "Global Authentication Conversion",

"note": "Converted from Global Authentication Policy - Fri Aug 25 13:40:35 EDT 2023",

"authenticationMethod": null,

"authenticationTime": 0,

"authenticationTimeOffLine": 600000,

"reauthentication": false,

"reauthenticationTime": 0,

"errorMessage": null,

"lastModifiedBy": "SYSTEM",

"lastModifiedDate": "2023-08-25T17:40:35.000+0000",

"id": 1

},

"enabled": true,

"yamsEventTag": "AUTHENTICATION_POLICY_MODIFICATION",

"auditObj": null,

"auditObjectName": "Guest Self-Registration Access Policy 2",

"auditObjectType": {

"auditTableName": "AuthenticationPolicyAudit",

"mysqlTableName": "AuthenticationPolicy",

"idnameQuery": "select ID,NAME from AuthenticationPolicy where ID in"

},

"weeklySchedule": {

"version": 1.1,

"startTimeOfDay": -1,

"endTimeOfDay": -1,

"daysOfWeek": -1,

"alwaysOn": true,

"validTime": true,

"endTimeOfDayAM": true,

"startTimeOfDayAM": true,

"startTimeOfDayHours": 12,

"endTimeOfDayHours": 12,

"startTimeOfDayMinutes": -1,

"endTimeOfDayMinutes": -1

},

"filterSet": [],

"configurationName": "Global Authentication Conversion"

},

"authenticationPolicyDebug": ""

}

Get /user/{id}/get-policy

Get /user/{id}/get-policy

Description

Returns the policy info for a user based on the provided user it.

Request Parameter

Id, the user record DBID.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Sample Request

Request URL

GET https://10.106.94.152:8443/api/v2/user/3/get-policy

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "success",

"errorMessage": null,

"accessPolicy": null,

"accessPolicyDebug": ""

"supplicantPolicy": null,

"supplicantPolicyDebug": ""

"epcPolicy": null,

"epcPolicyDebug": ""

"portalPolicy": null,

"portalPolicyDebug" ""

"authenticationPolicy": {

"dbid": 3,

"rank": 2,

"version": 0,

"lastModifiedBy": "admin",

"lastModifiedDate": "2023-09-21T22:58:21.000+0000",

"name": "Guest Self-Registration Access Policy 2",

"note": "",

"profile": {

"lastModifiedBy": "admin",

"lastModifiedDate": "2023-09-21T22:58:21.000+0000",

"DBID": 3,

"name": "Role Test 3",

"note": "",

"locationOperator": "OR",

"groupOperator": "OR",

"GUID": null,

"globalModifiedDate": "2023-09-21T22:58:21.000+0000",

"groupNames": [],

"weeklySchedule": {

"version": 1.1,

"startTimeOfDay": -1,

"endTimeOfDay": -1,

"daysOfWeek": -1,

"alwaysOn": true,

"validTime": true,

"endTimeOfDayAM": true,

"startTimeOfDayAM": true,

"startTimeOfDayHours": 12,

"endTimeOfDayHours": 12,

"startTimeOfDayMinutes": -1,

"endTimeOfDayMinutes": -1

},

"groupIDs": [],

"locationIDs": [],

"filterSet": [],

"locationNames": [],

"radiusFilterSet": [],

"catchAll": true

},

"configuration": {

"name": "Global Authentication Conversion",

"note": "Converted from Global Authentication Policy - Fri Aug 25 13:40:35 EDT 2023",

"authenticationMethod": null,

"authenticationTime": 0,

"authenticationTimeOffLine": 600000,

"reauthentication": false,

"reauthenticationTime": 0,

"errorMessage": null,

"lastModifiedBy": "SYSTEM",

"lastModifiedDate": "2023-08-25T17:40:35.000+0000",

"id": 1

},

"enabled": true,

"yamsEventTag": "AUTHENTICATION_POLICY_MODIFICATION",

"auditObj": null,

"auditObjectName": "Guest Self-Registration Access Policy 2",

"auditObjectType": {

"auditTableName": "AuthenticationPolicyAudit",

"mysqlTableName": "AuthenticationPolicy",

"idnameQuery": "select ID,NAME from AuthenticationPolicy where ID in"

},

"weeklySchedule": {

"version": 1.1,

"startTimeOfDay": -1,

"endTimeOfDay": -1,

"daysOfWeek": -1,

"alwaysOn": true,

"validTime": true,

"endTimeOfDayAM": true,

"startTimeOfDayAM": true,

"startTimeOfDayHours": 12,

"endTimeOfDayHours": 12,

"startTimeOfDayMinutes": -1,

"endTimeOfDayMinutes": -1

},

"filterSet": [],

"configurationName": "Global Authentication Conversion"

},

"authenticationPolicyDebug": ""

}