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
Given a StudyKey, fetch the users.
A GET
request is used to access the index
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 are required.
Parameter | Description |
---|---|
|
StudyKey to retrieve list of variables |
Request parameters are optional. Default values are used unless specified.
Parameter | Description |
---|---|
|
Which index page to be returned. Default value is 0. |
|
Items per page to be returned. Default value is 25. Maximum items allowed per page is 500 |
|
Name 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 |
|
Boolean flag whether to include inactive Users. Default value is |
Below is an example response payload.
{
"metadata" : {
"status" : "OK",
"method" : "GET",
"path" : "/api/v1/edc/studies/MOCK-STUDY/users",
"timestamp" : "2024-11-04 16:03:18",
"error" : { }
},
"pagination" : {
"currentPage" : 0,
"size" : 25,
"totalPages" : 1,
"totalElements" : 1,
"sort" : [ {
"property" : "login",
"direction" : "ASC"
} ]
},
"data" : [ {
"userId" : "ed4cb749-9e65-40d3-a15d-cc83d4e68ded",
"login" : "wsmith1",
"firstName" : "William",
"lastName" : "Smith",
"email" : "wsmith@mednet.com",
"userActiveInStudy" : true,
"roles" : [ {
"dateCreated" : [ 2024, 11, 4, 16, 3, 18, 487000000 ],
"dateModified" : [ 2024, 11, 4, 16, 3, 18, 487000000 ],
"roleId" : "bb5bae9d-5869-41b4-ae29-6d28f6200c85",
"communityId" : 1,
"name" : "Role name 1",
"description" : "Role description 1",
"level" : 1,
"type" : "Role type 1",
"inactive" : false
}, {
"dateCreated" : [ 2024, 11, 4, 16, 3, 18, 487000000 ],
"dateModified" : [ 2024, 11, 4, 16, 3, 18, 487000000 ],
"roleId" : "bb5bae9d-5869-41b4-ae29-6d28f6200c85",
"communityId" : 2,
"name" : "Role name 2",
"description" : "Role description 2",
"level" : 2,
"type" : "Role type 2",
"inactive" : false
} ]
} ]
}
Path | Type | Description |
---|---|---|
|
|
Http status |
|
|
Http method |
|
|
Requested URI path |
|
|
Timestamp when response was generated |
|
|
Detail error message from request if error occur |
|
|
Current index page |
|
|
Size per page |
|
|
Total pages return from search |
|
|
Total elements return from search |
|
|
Sort property |
|
|
Sort direction |
|
|
User ID |
|
|
Login |
|
|
First name |
|
|
Last name |
|
|
|
|
|
Boolean value for if the user is active in the study |
|
|
Role date created |
|
|
Role date modified |
|
|
Role ID |
|
|
Community ID associated with Role |
|
|
Role name |
|
|
Role description |
|
|
Role level |
|
|
Role type |
|
|
Inactive |