Auth API

Bulk Assign Role

Changed on

Bulk assign a role to multiple users.

Args: role_name: The role to assign request: BulkAssignRequest with list of user_ids assigned_by: Authenticated user making the request

Returns: BulkAssignResponse with results

post/api/auth/roles/{role_name}/users

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

role_namestring required

Headers

x-osmo-userstring nullable

Request body

user_idsstring[] required

Response

Successful Response

role_namestring required
assignedstring[] required
already_assignedstring[] required
failedstring[] required

Changes

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      header request parameter x-osmo-user list-of-types was widened by adding types null

    • ○

      for the header request parameter x-osmo-user, the type was generalized from string to no type