Associate a user with a study role
put
/ec-auth-svc/rest/v2.0/authusers/{userid}/studies/{StudyID}
Updates the list if user roles are based on the studyRole parameter.
Request
Path Parameters
-
StudyID(required): string(uuid)
Study ID (UUID) whose assignments are being updated.Example:
F94C431A809C4C7D900A0E0E71B4DDFE -
userid(required): string(uuid)
User ID (UUID) whose assignments are being updated.Example:
A1B2C3D4E5F647B8B0376A0874DA6ADE
Supported Media Types
- application/json
Root Schema : schema
Type:
objectRequest payload to update user study mode roles.
Show Source
-
effectiveEnd(required): string
(date-time)
The effective end date-time for this user-study role update.Example:
2025-06-17T10:15:30Z -
effectiveStart(required): string
(date-time)
The effective start date-time for this user-study role update.Example:
2020-06-17T10:15:30Z -
modes(required): object
modes
Update details for a user mode assignment in request payload.
Example:
{
"effectiveStart":"2020-06-17T10:15:30.000Z",
"effectiveEnd":"2025-06-17T10:15:30.000Z",
"modes":[
{
"modeName":"active",
"StudyRoleID":"1BC29B36F5D64B1B95F4BDBBCEA481BE",
"sites":{
"allSites":false,
"associatedSites":[
"946E7D36031941CCA39CD2B2CFF2899B",
"FE8925CFA8A74193A2E8D8326E7FEA88"
]
},
"depots":{
"allDepots":false,
"associatedDepots":[
"CEE624A4E7EB43059C6AEC24673A288B"
]
}
}
]
}Nested Schema : modes
Type:
objectUpdate details for a user mode assignment in request payload.
Show Source
-
depots: object
DepotsListDto
DTO containing the set of depot UUIDs assigned to the user in a study/mode context.
-
modeName(required): string
The mode the user is assigned to within a study (e.g., active, design, test, training).Example:
active -
sites: object
SitesListDto
Title:
SitesListDtoDTO containing the set of site UUIDs assigned to the user in a study/mode context. -
StudyRoleID: string
(uuid)
ID of the study role for user assignment.
Example:
{
"modeName":"active",
"StudyRoleID":"1BC29B36F5D64B1B95F4BDBBCEA481BE",
"sites":{
"allSites":false,
"associatedSites":[
"946E7D36031941CCA39CD2B2CFF2899B",
"FE8925CFA8A74193A2E8D8326E7FEA88"
]
},
"depots":{
"allDepots":false,
"associatedDepots":[
"CEE624A4E7EB43059C6AEC24673A288B"
]
}
}Nested Schema : DepotsListDto
Type:
objectDTO containing the set of depot UUIDs assigned to the user in a study/mode context.
Show Source
-
allDepots: boolean
Indicates if the user has access to all depots in the study.Example:
true -
associatedDepots: array
associatedDepots
A list of UUIDs identifying depots assigned to the user.
Nested Schema : SitesListDto
Type:
objectTitle:
SitesListDtoDTO containing the set of site UUIDs assigned to the user in a study/mode context.
Show Source
-
allSites: boolean
Indicates if the user has access to all sites in the study.Example:
false -
associatedSites: array
associatedSites
A list of UUIDs identifying sites assigned to the user.
Nested Schema : associatedDepots
Type:
arrayA list of UUIDs identifying depots assigned to the user.
Show Source
-
Array of:
string(uuid)
A list of UUIDs identifying depots assigned to the user.
Example:
[
"6E697AEB85A24A22B38C70495A0A5C48",
"6E697AEB85A24A22B38C70495A0A5C49"
]Nested Schema : associatedSites
Type:
arrayA list of UUIDs identifying sites assigned to the user.
Show Source
-
Array of:
string(uuid)
A list of UUIDs identifying sites assigned to the user.
Example:
[
"6E697AEB85A24A22B38C70495A0A5C48",
"4E9523BF795D4FE4AB9BF1EF8A340FAB"
]Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : DisplayUserStudyModeRoleListDtoV2
Type:
objectRepresents a user's study mode roles with effective period and modes.
Show Source
-
effectiveEnd: string
(date-time)
The effective end date-time for this user-study association.Example:
2025-06-17T10:15:30Z -
effectiveStart: string
(date-time)
The effective start date-time for this user-study association.Example:
2020-06-17T10:15:30Z -
modes: object
modes
Represents a user mode assignment with site, role and depot details.
Example:
{
"effectiveStart":"2020-06-17T10:15:30.000Z",
"effectiveEnd":"2025-06-17T10:15:30.000Z",
"modes":[
{
"modeName":"active",
"roles":[
{
"id":"F7A0E5390A1F43A9AF5346EB88AC921A",
"roleName":"Rule Designer"
},
{
"id":"EA0D45A19A6E45CDAAD5F2DB7BD4E104",
"roleName":"Site User"
}
],
"studyRole":{
"id":"1BC29B36F5D64B1B95F4BDBBCEA481BE",
"studyRoleName":"LEAD_INVESTIGATOR"
},
"sites":{
"allSites":false,
"associatedSites":[
{
"id":"946E7D36031941CCA39CD2B2CFF2899B",
"siteName":"SiteA"
},
{
"id":"FE8925CFA8A74193A2E8D8326E7FEA88",
"siteName":"SiteB"
}
]
},
"depots":{
"allDepots":false,
"associatedDepots":[
{
"id":"CEE624A4E7EB43059C6AEC24673A288B",
"depotName":"DepotA"
}
]
}
}
]
}Nested Schema : modes
Type:
objectRepresents a user mode assignment with site, role and depot details.
Show Source
-
depots: object
DisplayDepotsListDto
List of depots assigned to a user.
-
modeName: string
The mode the user is assigned to within a study (e.g., active, design, test, training).Example:
active -
roles: object
roles
Associates a user with a global role.
-
sites: object
DisplaySitesListDto
List of sites assigned to a user.
-
studyRole: object
DisplayStudyRoleDto
Represents a study-level role for a user.
Example:
{
"modeName":"active",
"roles":[
{
"id":"F7A0E5390A1F43A9AF5346EB88AC921A",
"roleName":"Rule Designer"
},
{
"id":"EA0D45A19A6E45CDAAD5F2DB7BD4E104",
"roleName":"Site User"
}
],
"studyRole":{
"id":"1BC29B36F5D64B1B95F4BDBBCEA481BE",
"studyRoleName":"LEAD_INVESTIGATOR"
},
"sites":{
"allSites":false,
"associatedSites":[
{
"id":"946E7D36031941CCA39CD2B2CFF2899B",
"siteName":"SiteA"
},
{
"id":"FE8925CFA8A74193A2E8D8326E7FEA88",
"siteName":"SiteB"
}
]
},
"depots":{
"allDepots":false,
"associatedDepots":[
{
"id":"CEE624A4E7EB43059C6AEC24673A288B",
"depotName":"DepotA"
}
]
}
}Nested Schema : DisplayDepotsListDto
Type:
objectList of depots assigned to a user.
Show Source
-
allDepots: boolean
Whether all depots are associated.Example:
false -
associatedDepots: object
associatedDepots
Represents a clinical depot.
Example:
{
"allDepots":false,
"associatedDepots":[
{
"id":"CEE624A4E7EB43059C6AEC24673A288B",
"depotName":"DepotA"
}
]
}Nested Schema : roles
Type:
objectAssociates a user with a global role.
Show Source
-
id: string
(uuid)
Unique identifier for this user-role association.
-
roleName: string
Name of the role assigned to the user.Example:
STUDY_MANAGER
Example:
{
"id":"A519EF3C2B73455390CFF812AFF61519",
"roleName":"STUDY_MANAGER"
}Nested Schema : DisplaySitesListDto
Type:
objectList of sites assigned to a user.
Show Source
-
allSites: boolean
Whether all sites are associated.Example:
false -
associatedSites: object
associatedSites
Represents a clinical trial site.
Example:
{
"allSites":false,
"associatedSites":[
{
"id":"946E7D36031941CCA39CD2B2CFF2899B",
"siteName":"SiteA"
},
{
"id":"FE8925CFA8A74193A2E8D8326E7FEA88",
"siteName":"SiteB"
}
]
}Nested Schema : DisplayStudyRoleDto
Type:
objectRepresents a study-level role for a user.
Show Source
-
id: string
(uuid)
Unique identifier for the study role.
-
roleName: string
Example:
{
"id":"1BC29B36F5D64B1B95F4BDBBCEA481BE",
"studyRoleName":"LEAD_INVESTIGATOR"
}Nested Schema : associatedDepots
Type:
objectRepresents a clinical depot.
Show Source
-
depotName: string
Name of the depot.Example:
DepotA -
id: string
Unique identifier for the depot.Example:
CEE624A4E7EB43059C6AEC24673A288B
Example:
{
"id":"CEE624A4E7EB43059C6AEC24673A288B",
"depotName":"DepotA"
}Nested Schema : associatedSites
Type:
objectRepresents a clinical trial site.
Show Source
-
id: string
(uuid)
Unique identifier for the site.
-
roleName: string
-
siteName: string
Name of the site.Example:
SiteA
Example:
{
"id":"946E7D36031941CCA39CD2B2CFF2899B",
"siteName":"SiteA"
}Examples
400 Response
Bad request
Root Schema : AuthResponse
Type:
objectGeneric API response wrapper containing result, error data, response version and status.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result data of the API response; actual type depends on the API
-
status: string
(none)
Indicates request success ("success") or failure ("failure").Example:
success -
version: integer
(int32)
Version of the response schema.Example:
1
Nested Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: string
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.Example:
User role is missing required permission REPORTING_VIEW. Field: userId -
errorCode: string
Application or business-specific error code representing the error type.Example:
REPT_401 -
errorMessage: string
Human-readable error message describing the failure or issue.Example:
Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type:
objectResult data of the API response; actual type depends on the API
Example:
oracle.doceng.json.BetterJsonNull@3565a0f5