Get list of newly created Teams using Graph

Nayan NIKUMBH 21 Reputation points
2021-04-21T13:42:48.417+00:00

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

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,808 questions
0 comments No comments
{count} votes

Accepted answer
  1. Danstan Onyango 3,821 Reputation points Microsoft Employee
    2021-04-22T14:06:05.66+00:00

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.