Home

Permission required to run the Microsoft Teams Powershell module

%3CLINGO-SUB%20id%3D%22lingo-sub-143871%22%20slang%3D%22en-US%22%3EPermission%20required%20to%20run%20the%20Microsoft%20Teams%20Powershell%20module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-143871%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3BI%20have%20installed%20the%20Microsoft%20Teams%20PowerShell%20module%20and%20when%20I%20use%20it%20to%20fetch%20the%20list%20of%20Teams%20created%20in%20our%20tenant%20by%20running%20%22%20Get-Team%22%20command%20it%20doesn't%20return%20anything%20.%20I'm%20using%20my%20global%20admin%20account%20and%20it%20doesn't%20have%20any%20product%20license%20assigned%20to%20it%20.%20However%20%2Cwhen%20I%20try%20the%20same%20in%20a%20different%20tenant%20using%20the%20global%20admin%20account%20that%20has%20the%20product%20license%20assigned%20to%20it%20%2C%20it%20does%20return%20all%20the%20values%20.%20So%20I%20would%20like%20to%20know%20whether%20any%20Office%20365%20product%20license%20is%20required%20to%20make%20use%20of%20the%20Teams%20PowerShell%20module%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-143871%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-284721%22%20slang%3D%22en-US%22%3ERe%3A%20Permission%20required%20to%20run%20the%20Microsoft%20Teams%20Powershell%20module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-284721%22%20slang%3D%22en-US%22%3E%3CP%3ESeems%20so%2C%20I%20can%20only%20change%20it%20for%20Teams%20I%20own...%20Another%20limitation%20of%20the%20module.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-284591%22%20slang%3D%22en-US%22%3ERe%3A%20Permission%20required%20to%20run%20the%20Microsoft%20Teams%20Powershell%20module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-284591%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20a%20quick%20%22assure%20me%20question%22.%20I%20am%20a%20global%20admin%20of%20tenant.%20And%20I%20cannot%20with%20that%20PowerShell%20module%20change%20Teams%20picture%20because%20of%20%22User%20does%20not%20have%20permission%22.%20I%20need%20to%20be%20owner%20of%20this%20particular%20team%20to%20get%20this%20change.%20Am%20I%20correct%3F%20If%20yes%2C%20this%20does%20not%20make%20a%20sense%20to%20be%20a%20global%20admin...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-237922%22%20slang%3D%22en-US%22%3ERe%3A%20Permission%20required%20to%20run%20the%20Microsoft%20Teams%20Powershell%20module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-237922%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20Graph%20API%20has%20already%20been%20updated%20to%20list%20%22non-owned%22%20Teams%2C%20the%20PowerShell%20module%20will%20follow%20soon.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-236282%22%20slang%3D%22en-US%22%3ERe%3A%20Permission%20required%20to%20run%20the%20Microsoft%20Teams%20Powershell%20module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-236282%22%20slang%3D%22en-US%22%3E%3CP%3EI%20agree%20and%20that%20has%20been%20the%20biggest%20headache%20for%20us.%26nbsp%3B%20How%20are%20Global%20Admins%20supposed%20to%20manage%2Fmaintain%20a%20system%20like%20this%20%22Teams%22%20release%20that%20basically%20promotes%20anarchy%20in%20the%20default%20form.%26nbsp%3B%20In%20my%20opinion%20MS%20just%20wanted%20to%20let%20this%20monster%20go%20and%20see%20what%20happened.%26nbsp%3B%20From%20a%20compliance%20perspective%20if%20you%20did%20not%20disable%20Teams%20within%20a%20month%20of%20the%20Release%2C%20people%20started%20creating%20their%20own%20Teams%20without%20understanding%20what%20was%20happening%20in%20the%20back%20end.%26nbsp%3B%20It%20took%20me%20almost%20a%20week%20to%20figure%20out%20where%20to%20see%20how%20many%20sites%20and%20O365%20Groups%20were%20created%20and%20who%20created%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-236077%22%20slang%3D%22en-US%22%3ERe%3A%20Permission%20required%20to%20run%20the%20Microsoft%20Teams%20Powershell%20module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-236077%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20my%20account%20is%20global%20administrator%2C%20it%20should%20be%20able%20to%20query%20*all*%20teams.%26nbsp%3B%20It's%20kind%20of%20useless%20that%20it%20currently%20queries%20only%20teams%20that%20I%20belong%20to.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-144269%22%20slang%3D%22en-US%22%3ERe%3A%20Permission%20required%20to%20run%20the%20Microsoft%20Teams%20Powershell%20module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-144269%22%20slang%3D%22en-US%22%3E%3CP%3EGet-Team%20only%20returns%20teams%20*you*%20belong%20to.%20Yes%2C%20it's%20crappy%20like%20that.%20Wait%20for%20a%20better%20version%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-143890%22%20slang%3D%22en-US%22%3ERe%3A%20Permission%20required%20to%20run%20the%20Microsoft%20Teams%20Powershell%20module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-143890%22%20slang%3D%22en-US%22%3ETeams%20PowerShell%20module%20is%20currently%20fully%20functional%20in%20regards%20of%20the%20information%20you%20can%20get%20with%20Get-Team...to%20answer%20your%20question%2C%20you%20need%20to%20have%20the%20licenses%20required%20to%20access%20to%20Teams%20since%20Get-Team%20returns%20the%20Teams%20your%20user%20is%20member%20of%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi All,

   I have installed the Microsoft Teams PowerShell module and when I use it to fetch the list of Teams created in our tenant by running " Get-Team" command it doesn't return anything . I'm using my global admin account and it doesn't have any product license assigned to it . However ,when I try the same in a different tenant using the global admin account that has the product license assigned to it , it does return all the values . So I would like to know whether any Office 365 product license is required to make use of the Teams PowerShell module .

7 Replies
Highlighted
Teams PowerShell module is currently fully functional in regards of the information you can get with Get-Team...to answer your question, you need to have the licenses required to access to Teams since Get-Team returns the Teams your user is member of
Highlighted

Get-Team only returns teams *you* belong to. Yes, it's crappy like that. Wait for a better version :)

Highlighted

If my account is global administrator, it should be able to query *all* teams.  It's kind of useless that it currently queries only teams that I belong to.

 

Highlighted

I agree and that has been the biggest headache for us.  How are Global Admins supposed to manage/maintain a system like this "Teams" release that basically promotes anarchy in the default form.  In my opinion MS just wanted to let this monster go and see what happened.  From a compliance perspective if you did not disable Teams within a month of the Release, people started creating their own Teams without understanding what was happening in the back end.  It took me almost a week to figure out where to see how many sites and O365 Groups were created and who created them.

Highlighted

The Graph API has already been updated to list "non-owned" Teams, the PowerShell module will follow soon.

Highlighted

Just a quick "assure me question". I am a global admin of tenant. And I cannot with that PowerShell module change Teams picture because of "User does not have permission". I need to be owner of this particular team to get this change. Am I correct? If yes, this does not make a sense to be a global admin...

Highlighted

Seems so, I can only change it for Teams I own... Another limitation of the module.

Related Conversations
Kaizala Custom Action Photo storage
Lisa_sach in Microsoft Kaizala on
0 Replies
unable to apply PNP template due to MFA
gadagottiraj in SharePoint on
0 Replies
Teams message encryption
Thomas_Steibl in Microsoft Teams on
3 Replies