Get a user's modes and roles
get
/ec-auth-svc/rest/v5.0/authusers/{userid}/studies/{StudyID}
Retrieves all role, mode, site, and depot assignments for the specified user within a single study. Response returns a full list of user mode assignments with all effective dates, roles, sites, depots, and comprehensive assignment information.
Request
Path Parameters
-
StudyID(required): string(uuid)
UUID of the study whose assignments are being retrieved.Example:
F94C431A809C4C7D900A0E0E71B4DDFE -
userid(required): string(uuid)
UUID of the user whose study assignments are being retrieved.Example:
A1B2C3D4E5F647B8B0376A0874DA6ADE
Query Parameters
-
includeRemoved: string
Flag (Y/N) to include removed assignments in the response.Default Value:
NAllowed Values:[ "Y", "N" ]Example:N -
includeRoles: boolean
Boolean: whether to include global roles/sub-roles in the results.Default Value:
trueExample:true
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Comprehensive user study access assignments for all supported modes.
Root Schema : DisplayUserStudyAccessDetails
Type:
objectProvides a user's last access timestamp and a list of their mode/role/site/depot assignments for a study.
Show Source
-
lastAccess: string
(date-time)
UTC ISO 8601 timestamp for when the user last accessed this study.Example:
2024-10-26T18:41:00Z -
userStudyModeDetails: object
userStudyModeDetails
Assignment and role details for a user in a specific study mode, including role, studyRole, sites, and depots assignments.
Example:
{
"lastAccess":"2024-10-26T18:41:00.000Z",
"userStudyModeDetails":[
{
"modeName":"active",
"effectiveStart":"2021-01-01T00:00:00.000Z",
"effectiveEnd":"2026-01-01T00:00:00.000Z",
"roles":[
{
"roleId":"A519EF3C2B73455390CFF812AFF61519",
"roleName":"Rule Designer"
},
{
"roleId":"EA0D45A19A6E45CDAAD5F2DB7BD4E104",
"roleName":"Site User"
}
],
"studyRole":{
"id":"1BC29B36F5D64B1B95F4BDBBCEA481BE",
"studyRoleName":"LEAD_INVESTIGATOR"
},
"sites":{
"allSites":false,
"associatedSites":[
"946E7D36031941CCA39CD2B2CFF2899B",
"FE8925CFA8A74193A2E8D8326E7FEA88"
]
},
"depots":{
"allDepots":false,
"associatedDepots":[
"CEE624A4E7EB43059C6AEC24673A288B"
]
}
}
]
}Nested Schema : userStudyModeDetails
Type:
objectAssignment and role details for a user in a specific study mode, including role, studyRole, sites, and depots assignments.
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
List of global roles with ID and roleName, assigned to the user in this mode.
-
sites: object
sites
Represents a user's mapping to sites or depots for a study/mode.
-
studyRoles: object
studyRoles
List of study-level roles assigned to this user in this mode.
Example:
{
"mode":{
"modeName":"active",
"effectiveStart":"2021-01-01T00:00:00.000Z",
"effectiveEnd":"2026-01-01T00:00:00.000Z"
},
"studyRoles":[
{
"id":"1BC29B36F5D64B1B95F4BDBBCEA481BE",
"studyRoleName":"LEAD_INVESTIGATOR"
}
],
"roles":[
{
"roleId":"A519EF3C2B73455390CFF812AFF61519",
"roleName":"Rule Designer"
},
{
"roleId":"EA0D45A19A6E45CDAAD5F2DB7BD4E104",
"roleName":"Site User"
}
],
"sites":[
{
"allSites":false,
"associatedSites":[
"946E7D36031941CCA39CD2B2CFF2899B",
"FE8925CFA8A74193A2E8D8326E7FEA88"
]
}
],
"depots":[
{
"allDepots":false,
"associatedDepots":[
"CEE624A4E7EB43059C6AEC24673A288B"
]
}
]
}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:
objectList of global roles with ID and roleName, assigned to the user in this mode.
Show Source
-
authorizedUserId: string
(uuid)
-
comment: string
-
effectiveEnd: string
(date-time)
-
effectiveStart: string
(date-time)
-
modeId: string
(uuid)
-
objectVersionNumber: number
-
operationType: string
-
reason: string
-
rightId: string
(uuid)
-
roleCategory(required): string
-
roleCategoryLabel(required): string
-
roleId(required): string
(uuid)
-
roleName(required): string
-
roleNameLabel(required): string
-
roleSeq: number
-
roleSubCategory: string
-
roleSubCategoryLabel: string
-
roleType(required): string
-
roleTypeLabel(required): string
-
softwareVersionNumber: number
-
StudyID: string
(uuid)
-
StudyRoleID: string
(uuid)
-
unblinded: string
-
userId: string
(uuid)
-
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
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:
objectList of study-level roles assigned to this user in this mode.
Show Source
-
authorizedUserId: string
(uuid)
-
comment: string
-
effectiveEnd: string
(date-time)
-
effectiveStart: string
(date-time)
-
modeId: string
(uuid)
-
objectVersionNumber: number
-
operationType: string
-
reason: string
-
roleId: string
(uuid)
-
roles: array
roles
-
softwareVersionNumber: number
-
StudyID: string
(uuid)
-
studyRoleCreationType(required): string
-
studyRoleDesc(required): string
-
studyRoleDescLabel(required): string
-
StudyRoleID(required): string
(uuid)
-
studyRoleName(required): string
-
studyRoleNameLabel(required): string
-
studyRoleStatus(required): string
-
studyRoleType(required): string
-
studyRoleTypeLabel(required): string
-
studyRoleVersion: string
-
userId: string
(uuid)
-
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
Nested Schema : RoleDtoParams
Type:
Show Source
object-
authorizedUserId: string
(uuid)
-
comment: string
-
effectiveEnd: string
(date-time)
-
effectiveStart: string
(date-time)
-
modeId: string
(uuid)
-
objectVersionNumber: number
-
operationType: string
-
reason: string
-
rightId: string
(uuid)
-
roleCategory(required): string
-
roleCategoryLabel(required): string
-
roleId(required): string
(uuid)
-
roleName(required): string
-
roleNameLabel(required): string
-
roleSeq: number
-
roleSubCategory: string
-
roleSubCategoryLabel: string
-
roleType(required): string
-
roleTypeLabel(required): string
-
softwareVersionNumber: number
-
StudyID: string
(uuid)
-
StudyRoleID: string
(uuid)
-
unblinded: string
-
userId: string
(uuid)
-
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
Examples
400 Response
Invalid request parameters: missing or malformed user or study ID.
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