MS Grapah API returns only 100 Office 365 groups

%3CLINGO-SUB%20id%3D%22lingo-sub-238470%22%20slang%3D%22en-US%22%3EMS%20Grapah%20API%20returns%20only%20100%20Office%20365%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-238470%22%20slang%3D%22en-US%22%3E%3CP%3EHI%2C%3C%2FP%3E%3CP%3EI%20am%20using%20MS%20graph%20API%20to%20fetch%20all%20Office%20365%20groups%20to%20check%20if%20any%20group%20has%20single%20owner.%20If%20any%20group%20has%20single%20owner%20then%20we%20are%20sending%20an%20email%20notification%20to%20add%20secondary%20owner%20for%20the%20Group.%20But%20when%20I%20used%20MS%20Graph%20API%20to%20fetch%20groups%20details%20I%20am%20getting%20only%20100%20groups%20in%20the%20result.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAPI%20user%3A%26nbsp%3B%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%3F%24filter%3DgroupTypes%2Fany(g%3Ag%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%3F%24filter%3DgroupTypes%2Fany(g%3Ag%3C%2FA%3E%20eq%20'Unified')%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anybody%20tell%20how%20to%20get%20all%20Office%20365%20unified%20groups%20using%20Graph%20API.%20Also%20please%20share%20all%20the%20limitation%20of%20MS%20Graph%20API.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Esome%20more%20info%3A%3C%2FP%3E%3CP%3E-%20MS%20Graph%20API%20invoked%20from%20Azure%20functions%20app%3C%2FP%3E%3CP%3E-%20Azure%20AD%20app%20used%20for%20authentication%20and%20below%20permission%20granted(Admin%20consent)%20to%20the%20App%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3ERead%20all%20usage%20reports%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ERead%20all%20channel%20messages%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ERead%20all%20audit%20log%20data%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ERead%20all%20groups%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ERead%20all%20users'%20full%20profiles%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ESign%20in%20and%20read%20user%20profile(delegated%20permission)%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSPAN%3EThanks%20in%20advance%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EK%20Senthilrajan%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-238470%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-239358%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Grapah%20API%20returns%20only%20100%20Office%20365%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-239358%22%20slang%3D%22en-US%22%3E%3CP%3EUse%20pagination%20as%20detailed%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fdocs%2Fconcepts%2Fpaging%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fdocs%2Fconcepts%2Fpaging%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-776783%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Grapah%20API%20returns%20only%20100%20Office%20365%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-776783%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F99646%22%20target%3D%22_blank%22%3E%40Senthilrajan%20Kaliyaperumal%3C%2FA%3E%26nbsp%3B%20You%20can%20use%20pagination%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fdocs%2Fconcepts%2Fpaging%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fdocs%2Fconcepts%2Fpaging%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20call%20this%20url%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%3F%24filter%3DgroupTypes%2Fany(g%3Ag%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%3F%24top%3D999%26amp%3B%24filter%3DgroupTypes%2Fany(g%3Ag%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eeq%20'Unified')%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20suggest%20to%20call%20only%20email%20address%20and%20id%20for%20owners%2C%20for%20that%20you%20can%20use%20%24select%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%3F%24filter%3DgroupTypes%2Fany(g%3Ag%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%3F%24select%3Did%2Cmail%26amp%3B%24top%3D999%26amp%3B%24filter%3DgroupTypes%2Fany(g%3Ag%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eeq%20'Unified')%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

HI,

I am using MS graph API to fetch all Office 365 groups to check if any group has single owner. If any group has single owner then we are sending an email notification to add secondary owner for the Group. But when I used MS Graph API to fetch groups details I am getting only 100 groups in the result.

 

API user: https://graph.microsoft.com/beta/groups?$filter=groupTypes/any(g:g eq 'Unified')

 

Can anybody tell how to get all Office 365 unified groups using Graph API. Also please share all the limitation of MS Graph API.

 

some more info:

- MS Graph API invoked from Azure functions app

- Azure AD app used for authentication and below permission granted(Admin consent) to the App

  1. Read all usage reports
  2. Read all channel messages
  3. Read all audit log data
  4. Read all groups
  5. Read all users' full profiles
  6. Sign in and read user profile(delegated permission)

Thanks in advance

K Senthilrajan

 

 

2 Replies