Workspace User List
API Explorer: /workspaces/{workspaceId}/users
To return a list of the workspace users, a workspaceId
is required. The sample code returns a list of workspace users within workspaceId
of 123456
. Use the actual ID value for the workspace to return the list of the workspace users in your workspace.
workspaceId
of the workspace, use List Workspaces to return a list of your workspaces.Workspace User List
curl 'https://a.blazemeter.com/api/v4/workspaces/123456/users' \
--user 'api_key_id:api_key_secret'
Workspace User List Parameters
Parameters
-
roles
arrayThe roles you are wanting to get the list of workspace users for. Uses the following format:
roles[]=${role}
. These values can be any of the following:tester
- Workspace tester rolemanager
- Workspace manager roleviewer
- Workspace viewer role -
excludeRoles
arrayThe roles you are wanting to exclude from the list of account users. Uses the following format:
excludeRoles[]=${role}
. These values can be any of the following:tester
- Workspace tester rolemanager
- Workspace manager roleviewer
- Workspace viewer role -
enabled
booleanDenotes if you are wanting to get a list of account users that are enabled (if
true
) or disabled (iffalse
) -
textFilter
stringFilters the returned account user list to any account user emails that match the given string
Also see: Pagination
Workspace User List Response Attributes
Attributes
-
id
integerread-only
The
userId
of the user -
email
stringread-only
The email address of the user
-
displayName
stringread-only
The display name of the user
-
firstName
stringread-only
The first name of the user
-
lastName
stringread-only
The last name of the user
-
login
integerread-only
The timestamp for when the user last logged in
-
access
integerread-only
The timestamp for when the user last accessed the workspace
-
roles
arrayAn array of workspace roles that will be assigned to the user. Only ONE role should be assigned for any user. The following are the available roles:
tester
- Workspace tester rolemanager
- Workspace manager roleviewer
- Workspace viewer role -
enabled
booleanDenotes if the user is enabled in the workspace or not
-
lastAccess
integerread-only
The timestamp for when the user last accessed the workspace
Response200 OK
{
"limit": 10,
"skip": 0,
"total": 2,
"hidden": 0,
"api_version": 4,
"error": null,
"result": [
{
"id": 123456,
"email": "adminUser@myDomain.com",
"displayName": "Admin User",
"firstName": "Admin",
"lastName": "User",
"login": 1573488679,
"access": 1573501903,
"roles": [
"manager"
],
"enabled": true,
"lastAccess": 1573501903
},
{
"id": 234567,
"email": "standardUser@myDomain.com",
"displayName": "Standard User",
"firstName": "Standard",
"lastName": "User",
"login": 1506347921,
"access": 1516906397,
"roles": [
"tester"
],
"enabled": false,
"lastAccess": 1516906397,
"type": "workspace"
}
],
"request_id": "5dc9bdef0a561"
}