rabwill/teams-list

Groups.Read.All is no valid scope

Closed this issue · 5 comments

Hi @rabwill

thanks for sharing your solution!
I packaged it and installed it in sharepoint online. I also included it as webpart within a site.
But when I try to grant the necessary privileges, I can only do so for the User.Read.All and User.ReadBasic.All - for Groups.Read.All I get an error. When I try via PowerShell it tells me that this scope cannot be found.
Does this work for you?

Hey @chaelli ,

Just try Group.Read.All and let me know how it goes!
Remove the extra ‘s’

WOW! that was quick - and solved the problem.
Thanks a lot!

You might want to enable Calendars.Read and Calendars.ReadWrite as well. I already have most of them enabled in my tenant earlier and may not need the webpart to request them. But thanks for pointing the typo. 👏🏻

thanks for the tip - but why would I need Calendars access to list teams? or do you just mean generally for developments like this?

Oops ignore me, I was thinking of the new spfx webpart i released which shows my events haha. Just checked which repo you have commented on now.
Yep you are right the teams one dont need that. ( too many browsers open)
Cheers,