I doubt there is another way to do this apart from just fetching and filtering on the client side or using the beta API but beta is not recommended in production. As suggested in the docs, you can pull and perform the filter on your end.
Get list of newly created Teams using Graph
Hi Friends,
I am searching for a way to get list of newly created teams using Graph API.
Need this to perform an automated operation on those teams to remove few of the privileges as soon as the team gets created
(Example: Allow members to create and update channels
Allow members to create private channels
Allow members to delete and restore channels
Allow members to add and remove apps
Allow members to upload custom apps
)
I was able to get list of teams using this: GET /groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')
But cannot apply additional filters on it; as its not supported. Another problem is this is 'beta' endpoint.
Please provide few suggestions. Also it would be great if I get any suggestions on how to display the list on a web page.
Regards
-
Danstan Onyango 3,821 Reputation points Microsoft Employee
2021-04-22T14:06:05.66+00:00