[Deprecated]: Get a user's modes and roles
get
/ec-auth-svc/rest/v1.0/authusers/{userid}/studies/{StudyID}
Deprecated: Use /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. Retrieves the modes and roles for a user and a study.
Request
Path Parameters
-
StudyID(required): string(uuid)
Study ID (UUID) whose assignments are being retrieved.Example:
F94C431A809C4C7D900A0E0E71B4DDFE -
userid(required): string(uuid)
User ID (UUID) whose assignments are being retrieved.Example:
A1B2C3D4E5F647B8B0376A0874DA6ADE
There's no request body for this operation.
Back to TopResponse
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