updated code example (#19102)

fixes: #16954
This commit is contained in:
Erik Jan de Wit 2023-03-17 15:51:45 +01:00 committed by GitHub
parent a30b6842a6
commit 31ae434e92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,8 +37,11 @@ await kcAdminClient.auth({
totp: '123456', // optional Time-based One-time Password if OTP is required in authentication flow
});
// List all users
const users = await kcAdminClient.users.find();
// List first page of users
const users = await kcAdminClient.users.find({ first: 0, max: 10 });
// find users by attributes
const users = await kcAdminClient.users.find({ q: "phone:123" });
// Override client configuration for all further requests:
kcAdminClient.setConfig({