Whether we want all object (if they are just a few hundred) or we just want only top 5 from the Graph API, we can use the OData syntax to get only what we need from the Azure AD Graph API:
The code used in this answer follows: