Forum Discussion
Melina
Jun 29, 2023Copper Contributor
PowerShell script for reading team information
With a PowerShell script, the following information should be stored in a csv file: - Team name - Teams channels - Team members - Teams owner - All files in a team channel incl. owner and with w...
Melina
Jul 04, 2023Copper Contributor
Thiraviam5316thank you!
I am facing the next challenge:
Can you help me further, which role or settings are necessary besides Global Admin? And where these roles must be assigned?
Thiraviam5316
Jul 05, 2023Brass Contributor
Melina You must connect to the Microsoft Graph PowerShell with the required scopes for accessing the channel member: ChannelMember.Read.All, ChannelMember.ReadWrite.All
For eg,
Connect-MgGraph -Scopes "ChannelMember.Read.All, ChannelMember.ReadWrite.All"
After Connecting to the Graph PowerShell, you can run the script to get the Teams report.