Skip to content

Commit b53d75e

Browse files
committed
users expand
1 parent a26226c commit b53d75e

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@salesforce/b2c-tooling-sdk': patch
3+
---
4+
5+
Fix `bm users search` returning only `login` and `link` fields. The underlying SDK `searchBmUsers()` now sends `select=(**)` (matching `listBmUsers()`), so `--sort-by`, `--columns`, and the default table now work as expected. A new `select` option is also exposed for callers that want a narrower projection.

packages/b2c-tooling-sdk/src/operations/bm-users/users.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ export interface SearchBmUsersOptions {
105105
start?: number;
106106
/** Number of items to return (default 25) */
107107
count?: number;
108+
/** Property selector (default returns shallow user fields) */
109+
select?: string;
108110
}
109111

110112
/**
@@ -222,7 +224,19 @@ export async function searchBmUsers(
222224
instance: B2CInstance,
223225
options: SearchBmUsersOptions = {},
224226
): Promise<BmUserSearchResult> {
225-
const {query: providedQuery, searchPhrase, login, email, locked, disabled, sortBy, sortOrder, start, count} = options;
227+
const {
228+
query: providedQuery,
229+
searchPhrase,
230+
login,
231+
email,
232+
locked,
233+
disabled,
234+
sortBy,
235+
sortOrder,
236+
start,
237+
count,
238+
select,
239+
} = options;
226240

227241
let query: unknown = providedQuery;
228242
if (!query) {
@@ -266,6 +280,7 @@ export async function searchBmUsers(
266280
start,
267281
count,
268282
sorts,
283+
select: select ?? '(**)',
269284
} as unknown as components['schemas']['search_request'],
270285
});
271286

0 commit comments

Comments
 (0)