OfficeDev / microsoft-teams-apps-requestateam

Power Platform based solution that allows users to request teams and automates team creation. NO LONGER MAINTAINED. Please use 'Provision Assist' - https://github.com/pnp/provision-assist-m365/ instead.
MIT License
236 stars 66 forks source link

Power App does not handle when you add more than 20 members #342

Open alexc-MSFT opened 2 years ago

alexc-MSFT commented 2 years ago

The graph call fails with more than 20 members so the Power App needs to enforce a max of 20.

alexc-MSFT commented 2 years ago

20 links exceeded actually includes members AND owners so members should be limited to 18

alexc-MSFT commented 2 years ago

Service account also gets added so should restrict to 17

heinrich-ulbricht commented 2 years ago

@alexc-MSFT Which Graph call are you referring to?

This one can handle up to 200 members according to the docs: https://docs.microsoft.com/en-us/graph/api/conversationmembers-add?view=graph-rest-1.0&tabs=http

(Just asking because I have a similar use case and this ticket with a limit of 20 members popped up.)

Edit: I suppose you mean this one: https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http#example-2-add-multiple-members-to-a-group-in-a-single-request

alexc-MSFT commented 2 years ago

@heinrich-ulbricht Thanks, we are actually adding the members when we create the Team. We actually create a group first and then create the team.

I'll add this to the roadmap to update the logic to add the members after using the endpoint you pointed out above 😀