Replies: 1 comment
-
Ended up seeing there was a const args: SubGroupQuery = {
parentId: currentGroup!.id,
first: 0,
max: 10,
briefRepresentation: false,
};
const groups = await kcAdminClient.groups.listSubGroups(args); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am stuck as to how to list the subgroups using the @keycloak/keycloak-admin-client package?
My code looks as follows:
The problem here is that the
groups.find
at the end results in just the root groups being returned unfiltered, so it is not even clear what the search is meant to be doingI also tried the following, but get told "Object literal may only specify known properties, and 'path' does not exist in type 'Pick<RequestArgs, "catchNotFound">'.". It is not clear how I should be using the second parameter, since I am having trouble finding any examples that makes use of it.
Looking at the definition more closely gives shows that only
catchNotFound
is accepted by the options?I also looked at spec.groups.ts, but that didn't help much.
Can anyone help me here?
Using @keycloak/keycloak-admin-client version 24.0.3.
Beta Was this translation helpful? Give feedback.
All reactions