[Deprecated]: Get a user's modes and roles
get
/ec-auth-svc/rest/v3.0/authusers/{userid}/studies/{StudyID}
Deprecated: Retrieves the list of study mode role assignments for a user in a study, including roles, sites, and depots in version 3.0 of the API. Use /v5.0/authusers/{userid}/studies/{StudyID} instead. The v5 version returns richer details on access mapping and unblinded status, and supports new fields for effective dates per mode. Current version differs by not including granularity at the access mapping or mode assignment levels. Provides expanded details of a user's roles and mode assignments for a particular study, including effective dates and associated site and depot mappings.
Request
Path Parameters
-
StudyID(required): string(uuid)
Study identifier as UUID.Example:
C66E641816EF4E2798AFFEEDD8D5B1E8 -
userid(required): string(uuid)
User identifier as UUID.Example:
BE2376BB5B0D469EBFA78DE98D954327
Query Parameters
-
includeRemoved: string
Flag indicating if assignments marked as removed should be included in the response. Use 'Y' to include, 'N' to exclude.Default Value:
NAllowed Values:[ "Y", "N" ]Example:N
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Success
Root Schema : schema
Type:
Show Source
array-
Array of:
object DisplayUserModeStudyRolesListDtoV3
Represents a user's mode assignment in v3, including roles, study roles, sites and depots.
Nested Schema : DisplayUserModeStudyRolesListDtoV3
Type:
objectRepresents a user's mode assignment in v3, including roles, study roles, sites and depots.
Show Source
-
depots: object
depots
Represents a user's mapping to sites or depots for a study/mode.
-
mode: object
DisplayModeDto
Represents a study assignment mode, including metadata and display attributes.
-
roles: object
roles
Represents an application role and its assignment attributes, including identifiers and display information.
-
sites: object
sites
Represents a user's mapping to sites or depots for a study/mode.
-
studyRoles: object
studyRoles
Study role assignment details for a user, including all attributes and versioning for v3 API.
Example:
{
"mode":{
"modeId":"CFA1426E4B9646299E692D9403AC5019",
"modeName":"active",
"modeType":"main",
"modeSeq":1,
"versionStart":"2023-01-01T09:00:00.000Z",
"versionEnd":"2024-01-01T09:00:00.000Z",
"operationType":"add",
"userId":"BE2376BB5B0D469EBFA78DE98D954327",
"objectVersionNumber":2,
"softwareVersionNumber":3,
"reason":"Scheduled migration",
"comment":"Automatically assigned at user creation."
},
"studyRoles":[
{
"StudyID":"C66E641816EF4E2798AFFEEDD8D5B1E8",
"authorizedUserId":"A6706B7CC5904EF79F9D5AE35668D175",
"modeId":"4A3EDAA8292245C6AA01D8975A7D46E1",
"StudyRoleID":"68B1C4F7CA2E7C90AFA8B5D8F18A5B4F",
"roleId":"5E40DF7E44E74FED91B1565DCF4FBC8A",
"studyRoleName":"LEAD_INVESTIGATOR",
"studyRoleDesc":"Main PI for the study",
"studyRoleType":"Primary",
"studyRoleStatus":"ENABLED",
"studyRoleCreationType":"auto",
"effectiveStart":"2021-05-01T08:30:00.000Z",
"effectiveEnd":"2025-01-01T08:30:00.000Z",
"versionStart":"2021-04-01T08:30:00.000Z",
"versionEnd":"2026-01-01T08:30:00.000Z",
"operationType":"add",
"userId":"24BADE98851C492A8C5D29DD8F9B1E36",
"objectVersionNumber":1,
"softwareVersionNumber":2,
"reason":"Initial study role assignment",
"comment":"Added due to auto-enrollment",
"studyRoleVersion":"v3.5",
"roles":[
{
"id":"37EFDC494C944E58ADAC8DA952A2C60C",
"roleName":"Site User",
"roleType":"Application",
"roleCategory":"Study",
"roleSeq":1,
"unblinded":"Y"
}
]
}
],
"roles":[
{
"id":"7D96866A5B1A43388B780C6D15E27ACD",
"roleName":"MONITOR",
"roleType":"Application",
"roleCategory":"Monitor",
"roleSeq":2,
"unblinded":"N"
}
],
"sites":[
{
"name":"associatedSites",
"value":"90C93FDF399E4DED99A0B7EF4E189C32"
},
{
"name":"associatedSites",
"value":"8188DBB5B5A9486B9767ED7263DA626E"
},
{
"name":"allSites",
"value":"false"
}
],
"depots":[
{
"name":"associatedDepots",
"value":"BD561E1A5BD748FFA3505A2B2E493C3A"
},
{
"name":"allDepots",
"value":"false"
}
]
}Nested Schema : depots
Type:
objectRepresents a user's mapping to sites or depots for a study/mode.
Show Source
-
authorizedUserId: string
(uuid)
-
comment: string
-
effectiveEnd: string
(date-time)
-
effectiveStart: string
(date-time)
-
mode: string
-
name: string
Name for the mapping group (e.g., 'associatedSites', 'associatedDepots', 'allSites', 'allDepots').Example:
associatedSites -
nameSeq: number
-
objectVersionNumber: number
-
operationType: string
-
reason: string
-
softwareVersionNumber: number
-
StudyID: string
(uuid)
-
userId: string
(uuid)
-
value: string
ID or logical value mapped to this property.Example:
90C93FDF399E4DED99A0B7EF4E189C32 -
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
Example:
{
"name":"associatedSites",
"value":"90C93FDF399E4DED99A0B7EF4E189C32",
"StudyID":"45A27BCC19D741C58AF11698753BDE5A",
"authorizedUserId":"47C0B2D48F2544E6B848FB6923D9531F",
"mode":"active"
}Nested Schema : DisplayModeDto
Type:
objectRepresents a study assignment mode, including metadata and display attributes.
Show Source
-
comment: string
Free-text comment for the mode assignment.Example:
Automatically assigned at user creation. -
modeId: string
(uuid)
Unique identifier for the mode.
-
modeName: string
Display name of the mode (e.g., active, design, test, training).Example:
active -
modeSeq: number
(int32)
Sequence/order number of the mode.Example:
1 -
modeType: string
Type of the mode.Example:
main -
objectVersionNumber: number
(int32)
Object version tracking number.Example:
2 -
operationType: string
Operation type (add, update, delete).Example:
add -
reason: string
Reason for operation or mode change.Example:
Scheduled migration -
softwareVersionNumber: number
(int32)
Software version for this mode definition.Example:
3 -
userId: string
(uuid)
User identifier who performed the operation.
-
versionEnd: string
(date-time)
End date/time for this particular mode version.Example:
2024-01-01T09:00:00Z -
versionStart: string
(date-time)
Start date/time for this particular mode version.Example:
2023-01-01T09:00:00Z
Example:
{
"modeId":"CFA1426E4B9646299E692D9403AC5019",
"modeName":"active",
"modeType":"main",
"modeSeq":1,
"versionStart":"2023-01-01T09:00:00.000Z",
"versionEnd":"2024-01-01T09:00:00.000Z",
"operationType":"add",
"userId":"BE2376BB5B0D469EBFA78DE98D954327",
"objectVersionNumber":2,
"softwareVersionNumber":3,
"reason":"Scheduled migration",
"comment":"Automatically assigned at user creation."
}Nested Schema : roles
Type:
objectRepresents an application role and its assignment attributes, including identifiers and display information.
Show Source
-
authorizedUserId: string
(uuid)
-
comment: string
-
effectiveEnd: string
(date-time)
-
effectiveStart: string
(date-time)
-
id(required): string
(uuid)
Unique identifier of the application role.
-
modeId: string
(uuid)
-
objectVersionNumber: number
-
operationType: string
-
reason: string
-
rightId: string
(uuid)
-
roleCategory(required): string
Business category of the role.Example:
Study -
roleName(required): string
Human-readable role name.Example:
VIEWER -
roleSeq: number
(int32)
Role sequence/order in assignment.Example:
1 -
roleSubCategory: string
-
roleType(required): string
Type of the role (e.g., Application, Study, Global).Example:
Application -
softwareVersionNumber: number
-
StudyID: string
(uuid)
-
StudyRoleID: string
(uuid)
-
unblinded: string
Indicates if the role is unblinded (Y/N).Example:
Y -
userId: string
(uuid)
-
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
Example:
{
"id":"37EFDC494C944E58ADAC8DA952A2C60C",
"roleName":"Site User",
"roleType":"Application",
"roleCategory":"Study",
"roleSeq":1,
"unblinded":"Y"
}Nested Schema : sites
Type:
objectRepresents a user's mapping to sites or depots for a study/mode.
Show Source
-
authorizedUserId: string
(uuid)
-
comment: string
-
effectiveEnd: string
(date-time)
-
effectiveStart: string
(date-time)
-
mode: string
-
name: string
Name for the mapping group (e.g., 'associatedSites', 'associatedDepots', 'allSites', 'allDepots').Example:
associatedSites -
nameSeq: number
-
objectVersionNumber: number
-
operationType: string
-
reason: string
-
softwareVersionNumber: number
-
StudyID: string
(uuid)
-
userId: string
(uuid)
-
value: string
ID or logical value mapped to this property.Example:
90C93FDF399E4DED99A0B7EF4E189C32 -
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
Example:
{
"name":"associatedSites",
"value":"90C93FDF399E4DED99A0B7EF4E189C32",
"StudyID":"45A27BCC19D741C58AF11698753BDE5A",
"authorizedUserId":"47C0B2D48F2544E6B848FB6923D9531F",
"mode":"active"
}Nested Schema : studyRoles
Type:
objectStudy role assignment details for a user, including all attributes and versioning for v3 API.
Show Source
-
authorizedUserId: string
(uuid)
User ID of person being granted the study role.
-
comment: string
Additional details or comments.Example:
Added due to auto-enrollment -
effectiveEnd: string
(date-time)
End timestamp for when the study role is no longer effective.Example:
2025-01-01T08:30:00Z -
effectiveStart: string
(date-time)
Start timestamp for when the study role is effective.Example:
2021-05-01T08:30:00Z -
modeId: string
(uuid)
The study assignment mode for this role.
-
objectVersionNumber: number
(int32)
Version control for the object.Example:
1 -
operationType: string
The operation performed on the study role record.Example:
add -
reason: string
Reason for the study role assignment.Example:
Initial study role assignment -
roleId: string
(uuid)
Application role ID (if applicable).
-
roles: object
roles
Represents an application role and its assignment attributes, including identifiers and display information.
-
softwareVersionNumber: number
(int32)
Software schema version for the study role.Example:
2 -
StudyID: string
(uuid)
The study to which the role assignment applies.
-
studyRoleCreationType(required): string
Creation type for the study role.Example:
auto -
studyRoleDesc(required): string
Description of the study role.Example:
Main PI for the study -
StudyRoleID(required): string
(uuid)
Unique identifier for the study role assigned.
-
studyRoleName(required): string
Display name of the study role.Example:
LEAD_INVESTIGATOR -
studyRoleStatus(required): string
Current status of the study role.Example:
ENABLED -
studyRoleType(required): string
Type of the study role.Example:
Primary -
studyRoleVersion: string
Business/version tag for this study role.Example:
v3.5 -
userId: string
(uuid)
User executing the operation.
-
versionEnd: string
(date-time)
End version timestamp for this study role definition.Example:
2026-01-01T08:30:00Z -
versionStart: string
(date-time)
Start version timestamp for this study role definition.Example:
2021-04-01T08:30:00Z
Example:
{
"StudyID":"C66E641816EF4E2798AFFEEDD8D5B1E8",
"authorizedUserId":"A6706B7CC5904EF79F9D5AE35668D175",
"modeId":"4A3EDAA8292245C6AA01D8975A7D46E1",
"StudyRoleID":"68B1C4F7CA2E7C90AFA8B5D8F18A5B4F",
"roleId":"5E40DF7E44E74FED91B1565DCF4FBC8A",
"studyRoleName":"LEAD_INVESTIGATOR",
"studyRoleDesc":"Main PI for the study",
"studyRoleType":"Primary",
"studyRoleStatus":"ENABLED",
"studyRoleCreationType":"auto",
"effectiveStart":"2021-05-01T08:30:00.000Z",
"effectiveEnd":"2025-01-01T08:30:00.000Z",
"versionStart":"2021-04-01T08:30:00.000Z",
"versionEnd":"2026-01-01T08:30:00.000Z",
"operationType":"add",
"userId":"24BADE98851C492A8C5D29DD8F9B1E36",
"objectVersionNumber":1,
"softwareVersionNumber":2,
"reason":"Initial study role assignment",
"comment":"Added due to auto-enrollment",
"studyRoleVersion":"v3.5",
"roles":[
{
"id":"37EFDC494C944E58ADAC8DA952A2C60C",
"roleName":"Site User"
}
]
}Nested Schema : roles
Type:
objectRepresents an application role and its assignment attributes, including identifiers and display information.
Show Source
-
authorizedUserId: string
(uuid)
-
comment: string
-
effectiveEnd: string
(date-time)
-
effectiveStart: string
(date-time)
-
id(required): string
(uuid)
Unique identifier of the application role.
-
modeId: string
(uuid)
-
objectVersionNumber: number
-
operationType: string
-
reason: string
-
rightId: string
(uuid)
-
roleCategory(required): string
Business category of the role.Example:
Study -
roleName(required): string
Human-readable role name.Example:
VIEWER -
roleSeq: number
(int32)
Role sequence/order in assignment.Example:
1 -
roleSubCategory: string
-
roleType(required): string
Type of the role (e.g., Application, Study, Global).Example:
Application -
softwareVersionNumber: number
-
StudyID: string
(uuid)
-
StudyRoleID: string
(uuid)
-
unblinded: string
Indicates if the role is unblinded (Y/N).Example:
Y -
userId: string
(uuid)
-
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
Example:
{
"id":"37EFDC494C944E58ADAC8DA952A2C60C",
"roleName":"Site User",
"roleType":"Application",
"roleCategory":"Study",
"roleSeq":1,
"unblinded":"Y"
}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