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.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

/rest/teams/{teamId}/users


Descriptor

Value

HTTP Method

GET

Description

Returns a list of users that have access to the given team

Required Permission

Manage Users

Version Introduced2.7.6


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/teams/1/users

Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": [
        {
            "id": 1,
            "name": "user",
            "displayName": "",
            "hasGlobalGroupAccess": true,
            "globalRole": {
                "id": 1,
                "displayName": "Administrator"
            },
            "type": "LOCAL",
            "activeDirectory": null,
            "groups": [],
            "accessControlTeamMaps": []
        },
        {
            "id": 4,
            "name": "appUser",
            "displayName": "",
            "hasGlobalGroupAccess": false,
            "globalRole": null,
            "type": "LOCAL",
            "activeDirectory": null,
            "groups": [
                {
                    "name": "myGroup (LOCAL)",
                    "id": 1
                }
            ],
            "accessControlTeamMaps": [
                {
                    "teamName": "Team",
                    "roleName": "-",
                    "appRoles": [
                        {
                            "teamName": "Team",
                            "appName": "ACE",
                            "roleName": "Administrator",
                            "active": true
                        }
                    ]
                }
            ]
        },
        {
            "id": 2,
            "name": "myUser",
            "displayName": "",
            "hasGlobalGroupAccess": false,
            "globalRole": null,
            "type": "LOCAL",
            "activeDirectory": null,
            "groups": [],
            "accessControlTeamMaps": [
                {
                    "teamName": "Team",
                    "roleName": "Administrator",
                    "appRoles": []
                }
            ]
        }
    ]
}
  • No labels