Users Endpoint
Given a StudyKey, fetch the users.
Accessing the index
A GET request is used to access the index.
Request structure
GET /api/v1/edc/studies/MOCK-STUDY/users?page=0&size=25&includeInactive=false&sort=login%2CASC HTTP/1.1
Content-Type: application/json
Host: localhost:8080
Path parameters
Path parameters are required.
studyKeyStudyKey to retrieve list of variables.
Request parameters
Request parameters are optional. Default values are used unless specified.
pageWhich index page to be returned. Default value is
0.sizeItems per page to be returned. Default value is
25. Maximum items allowed per page is500.sortName of the property by which to sort the result set. To sort in a particular direction add a comma to the property name and either
ascordesc. To sort by multiple properties add additional sort parameters. Default value islogin,asc.includeInactiveBoolean flag whether to include inactive Users. Default value is
false.
Response body
Below is an example response payload.
{
"metadata": {
"status": "OK",
"method": "GET",
"path": "/api/v1/edc/studies/MOCK-STUDY/users",
"timestamp": "2025-06-05 21:12:07",
"error": {}
},
"pagination": {
"currentPage": 0,
"size": 25,
"totalPages": 1,
"totalElements": 1,
"sort": [
{
"property": "login",
"direction": "ASC"
}
]
},
"data": [
{
"userId": "685253e1-1a95-4352-a7b0-4c62d3807727",
"login": "wsmith1",
"firstName": "William",
"lastName": "Smith",
"email": "wsmith@mednet.com",
"userActiveInStudy": true,
"roles": [
{
"dateCreated": [2025, 6, 5, 21, 12, 7, 625000000],
"dateModified": [2025, 6, 5, 21, 12, 7, 625000000],
"roleId": "6ec2a32b-143c-43d3-b562-9d902a61f884",
"communityId": 1,
"name": "Role name 1",
"description": "Role description 1",
"level": 1,
"type": "Role type 1",
"inactive": false
},
{
"dateCreated": [2025, 6, 5, 21, 12, 7, 625000000],
"dateModified": [2025, 6, 5, 21, 12, 7, 625000000],
"roleId": "6ec2a32b-143c-43d3-b562-9d902a61f884",
"communityId": 2,
"name": "Role name 2",
"description": "Role description 2",
"level": 2,
"type": "Role type 2",
"inactive": false
}
]
}
]
}
Response fields
metadata.statusString - HTTP status.
metadata.methodString - HTTP method.
metadata.pathString - Requested URI path.
metadata.timestampString - Timestamp when response was generated.
metadata.errorObject - Detail error message from request if error occur.
pagination.currentPageNumber - Current index page.
pagination.sizeNumber - Size per page.
pagination.totalPagesNumber - Total pages return from search.
pagination.totalElementsNumber - Total elements return from search.
pagination.sort[].propertyString - Sort property.
pagination.sort[].directionString - Sort direction.
data[].userIdString - User ID.
data[].loginString - Login.
data[].firstNameString - First name.
data[].lastNameString - Last name.
data[].emailString - Email.
data[].userActiveInStudyBoolean - Boolean value for if the user is active in the study.
data[].roles[].dateCreatedArray - Role date created.
data[].roles[].dateModifiedArray - Role date modified.
data[].roles[].roleIdString - Role ID.
data[].roles[].communityIdNumber - Community ID associated with Role.
data[].roles[].nameString - Role name.
data[].roles[].descriptionString - Role description.
data[].roles[].levelNumber - Role level.
data[].roles[].typeString - Role type.
data[].roles[].inactiveBoolean - Inactive.