/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 Introduced | 2.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": [] } ] } ] }