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
-
rolesarrayThe 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 -
excludeRolesarrayThe 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 -
enabledbooleanDenotes if you are wanting to get a list of account users that are enabled (if
true) or disabled (iffalse) -
textFilterstringFilters the returned account user list to any account user emails that match the given string
Also see: Pagination
Workspace User List Response Attributes
All timestamps are in UNIX Epoch time.
Attributes
-
idintegerread-only
The
userIdof the user -
emailstringread-only
The email address of the user
-
displayNamestringread-only
The display name of the user
-
firstNamestringread-only
The first name of the user
-
lastNamestringread-only
The last name of the user
-
loginintegerread-only
The timestamp for when the user last logged in
-
accessintegerread-only
The timestamp for when the user last accessed the workspace
-
rolesarrayAn 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 -
enabledbooleanDenotes if the user is enabled in the workspace or not
-
lastAccessintegerread-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"
}