Based on the class and the method name, it implies it gets all the provisioned groups. But in the source code, it's limited to 1000. This is probably meant for a Ui view. There should be a version of this that gets all the groups, or where you can set the page or whatever. The limiting to 1000 logic should be in UI classes.