[Deprecated]: Update a user's mode and roles
put
/ec-auth-svc/rest/v1.0/authusers/{userid}/studies/{StudyID}
Deprecated: Use PUT /v2.0/authusers/{userid}/studies/{StudyID} for the updated API. The latest version supports richer assignment payloads, improved validation and more extensible structure. This endpoint only retrieves current assignments, while the new version supports updates with detailed structure and request validation.
Deprecated: Use latest version instead. Updates the modes and roles for a user and a study.
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 object for updating a user's study assignment, containing effective dates and role/mode/site/depot assignments.
Show Source
-
effectiveEnd(required): string
(date-time)
End datetime (UTC, ISO 8601 format) for the user's assignments.Example:
2025-06-17T10:15:30Z -
effectiveStart(required): string
(date-time)
Start datetime (UTC, ISO 8601 format) for the user's assignments.Example:
2020-06-17T10:15:30Z -
modes(required): object
modes
Represents one mode assignment, including mode name, list of assigned roleIds, and assignment details for sites and depots.
Example:
{
"effectiveStart":"2020-06-17T10:15:30.000Z",
"effectiveEnd":"2025-06-17T10:15:30.000Z",
"modes":[
{
"modeName":"active",
"roles":[
{
"roleId":"F7A0E5390A1F43A9AF5346EB88AC921A",
"roleName":"Rule Designer"
},
{
"roleId":"EA0D45A19A6E45CDAAD5F2DB7BD4E104",
"roleName":"Site User"
}
],
"sites":{
"allSites":false,
"associatedSites":[
"946E7D36031941CCA39CD2B2CFF2899B",
"FE8925CFA8A74193A2E8D8326E7FEA88"
]
},
"depots":{
"allDepots":false,
"associatedDepots":[
"CEE624A4E7EB43059C6AEC24673A288B"
]
}
}
]
}Nested Schema : modes
Type:
objectRepresents one mode assignment, including mode name, list of assigned roleIds, and assignment details for sites and depots.
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 name of the mode this assignment refers to.Example:
active -
roles(required): array
roles
List of role UUIDs assigned to the user for this mode.
-
sites: object
SitesListDto
Title:
SitesListDtoDTO containing the set of site UUIDs assigned to the user in a study/mode context.
Example:
{
"modeName":"active",
"roles":[
"F7A0E5390A1F43A9AF5346EB88AC921A",
"EA0D45A19A6E45CDAAD5F2DB7BD4E104"
],
"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 : roles
Type:
arrayList of role UUIDs assigned to the user for this mode.
Show Source
-
Array of:
string(uuid)
List of role UUIDs assigned to the user for this mode.
Example:
[
"F7A0E5390A1F43A9AF5346EB88AC921A",
"EA0D45A19A6E45CDAAD5F2DB7BD4E104"
]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 : DisplayUserStudyModeRoleListDto
Type:
objectRepresents a user's assigned modes, roles, sites, and depots within a study, with study-wide effective dates.
Show Source
-
effectiveEnd: string
(date-time)
End datetime (UTC, ISO 8601 format) for the user's study assignments.Example:
2025-06-17T10:15:30Z -
effectiveStart: string
(date-time)
Start datetime (UTC, ISO 8601 format) for the user's study assignments.Example:
2020-06-17T10:15:30Z -
modes: object
modes
Represents a user's mode assignment in a study, including mode name, assigned roles, sites, and depots.
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"
}
],
"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's mode assignment in a study, including mode name, assigned roles, sites, and depots.
Show Source
-
depots: object
DisplayDepotsListDto
List of depots assigned to a user.
-
modeName: string
The name of the study mode (e.g., 'active', 'design', 'test', etc.).Example:
active -
roles: object
roles
Associates a user with a global role.
-
sites: object
DisplaySitesListDto
List of sites assigned to a user.
Example:
{
"modeName":"active",
"roles":[
{
"id":"F7A0E5390A1F43A9AF5346EB88AC921A",
"roleName":"Rule Designer"
},
{
"id":"EA0D45A19A6E45CDAAD5F2DB7BD4E104",
"roleName":"Site User"
}
],
"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 : 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