Create and assign bulk users

post

/ec-auth-svc/rest/v1.0/authusers/studies/{StudyID}/bulk

Create multiple users in bulk for a study. Provide StudyID in path, and a list of user objects in the body. The request allows for both federated and training users.

Request

Path Parameters
Query Parameters
  • If true, run asynchronously. Defaults to false.
    Default Value: false
    Example:
    false
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Payload for uploading a batch of users, including user details and bulk flags.
Show Source
Nested Schema : users
Type: object
Details required for a single user in a bulk upload.
Show Source
Example:
{
    "id":"F6B4E947CA41478DBE30CEF0A823BC43",
    "idcsId":"D196BD697CB34E169A7D8E465AB8B2F5",
    "firstName":"John",
    "lastName":"Smith",
    "userName":"jsmith",
    "emailId":"john.smith@email.com",
    "role":"SiteAdmin",
    "sites":"SiteA,SiteB",
    "depots":"DepotA",
    "startDate":"2025-12-31T00:00:00.000Z",
    "endDate":"3099-12-31T00:00:00.000Z"
}
Examples

Back to Top

Response

Supported Media Types

200 Response

Success

400 Response

Bad request
Body ()
Root Schema : AuthResponse
Type: object
Generic API response wrapper containing result, error data, response version and status.
Show Source
Nested Schema : ErrorResponseData
Type: object
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
  • 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
  • Application or business-specific error code representing the error type.
    Example: REPT_401
  • Human-readable error message describing the failure or issue.
    Example: Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type: object
Result data of the API response; actual type depends on the API
Example:
oracle.doceng.json.BetterJsonNull@3565a0f5

500 Response

Error
Body ()
Root Schema : ErrorResponseData
Type: object
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
  • 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
  • Application or business-specific error code representing the error type.
    Example: REPT_401
  • Human-readable error message describing the failure or issue.
    Example: Unauthorized: User does not have access to the requested resource
Back to Top