As of December 31st, 2023 ThreadFix 2.X has reached End of Life and is no longer supported. For any further information please contact the Success and Implementation team.

Get Roles - API

/rest/{version}/roles/list


Descriptor

Value

HTTP Method

GET

Description

Returns a list of roles.

Required Permission

Manage Roles

Version Introduced2.5.1.12


Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

A value of ‘application/json’ must be provided.


Sample Call:

curl -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" https://localhost:8443/threadfix/rest/latest/roles/list

Sample Output:


{
  "message": "",
  "success": true,
  "responseCode": -1,
  "object": [
    {
      "id": 1,
      "displayName": "Administrator"
    },
    {
      "id": 3,
      "displayName": "Developer Role"
    },
    {
      "id": 2,
      "displayName": "User"
    }
  ]
}

www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.

This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.