Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- Add OMNL/CBK Indonesia submission and audit binder docs, manifests, attestations - Add scripts/omnl transaction-package pipeline, LEI/PvP helpers, jq/lib fixtures - Update entity master data, MASTER_INDEX, TODOS, dbis-rail docs and rulebook - Add proof_package/regulatory skeleton and transaction package zip + snapshot JSON - validate-omnl-rail workflow, forge-verification-proxy tweak, .gitignore hygiene - Bump smom-dbis-138 (cronos verify docs/scripts) and explorer-monorepo (SPA + env report) Made-with: Cursor
20 lines
956 B
Bash
Executable File
20 lines
956 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# OMNL Fineract — List all clients (paginated): id, accountNo, externalId, displayName.
|
|
# Use to discover client ids when OMNL_ENTITY_MASTER_DATA accountNo/externalId do not match (e.g. after office migration).
|
|
# Same credentials as omnl-entity-data-apply.sh (omnl-fineract/.env or repo .env).
|
|
# Usage: from repo root: ./scripts/omnl/omnl-list-clients.sh
|
|
# OMNL_CLIENTS_PAGE_LIMIT=200
|
|
|
|
set -euo pipefail
|
|
REPO_ROOT="${REPO_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)}"
|
|
# shellcheck source=lib/omnl-fineract-common.sh
|
|
source "${REPO_ROOT}/scripts/omnl/lib/omnl-fineract-common.sh"
|
|
|
|
omnl_fineract_load_env
|
|
omnl_fineract_init_curl || exit 1
|
|
|
|
clients_json=$(omnl_fineract_fetch_all_clients_pageitems)
|
|
n=$(echo "$clients_json" | jq '.pageItems | length')
|
|
echo "clients=$n" >&2
|
|
echo "$clients_json" | jq -r '.pageItems[] | [(.id|tostring), (.accountNo // ""), (.externalId // ""), (.displayName // .firstname // "")] | @tsv'
|