Add subgroup count to groupByPath (#33161)
Closes #31410 Signed-off-by: Keshav Deshpande <keshavprashantdeshpande@gmail.com>
This commit is contained in:
parent
ba58110ed2
commit
402aa42201
1 changed files with 3 additions and 1 deletions
|
@ -116,6 +116,7 @@ import org.keycloak.services.resources.admin.permissions.AdminPermissions;
|
|||
import org.keycloak.storage.DatastoreProvider;
|
||||
import org.keycloak.storage.ExportImportManager;
|
||||
import org.keycloak.storage.StoreSyncEvent;
|
||||
import org.keycloak.utils.GroupUtils;
|
||||
import org.keycloak.utils.ProfileHelper;
|
||||
import org.keycloak.utils.ReservedCharValidator;
|
||||
|
||||
|
@ -1093,7 +1094,8 @@ public class RealmAdminResource {
|
|||
|
||||
}
|
||||
auth.groups().requireView(found);
|
||||
return ModelToRepresentation.toRepresentation(found, true);
|
||||
GroupRepresentation groupRep = ModelToRepresentation.toRepresentation(found, true);
|
||||
return GroupUtils.populateSubGroupCount(found, groupRep);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue