get:
  operationId: getPasswordSyncGroupsForInternal
  tags:
    - Password
  summary: Get Password Sync Group List
  description: >-
    This API returns a list of password sync groups by source ID or password policy ID. Return an empty list if there is no sync group found.
  parameters:
    - in: query
      name: passwordPolicyId
      schema:
        type: string
      description: The ID of the password policy for password sync groups
      example: 40289f65762537580176255dd2080002
    - in: query
      name: sourceId
      schema:
        type: string
      description: The ID of the source in the password sync group
      example: 2c918083746f642c01746f990884012a
  responses:
    '200':
      description: A list of password sync groups that meet the query condition.
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '../schemas/PasswordSyncGroup.yaml'
    '400':
      $ref: '../../v3/responses/400.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'