<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>see what teams a user is a member of Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/see-what-teams-a-user-is-a-member-of/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/see-what-teams-a-user-is-a-member-of/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Tue, 27 Apr 2021 22:40:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">144174110</site>	<item>
		<title>Get All Teams A User Is A Member Of</title>
		<link>https://thesysadminchannel.com/get-all-teams-a-user-is-a-member-of/</link>
					<comments>https://thesysadminchannel.com/get-all-teams-a-user-is-a-member-of/#respond</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Tue, 27 Apr 2021 22:40:47 +0000</pubDate>
				<category><![CDATA[Teams]]></category>
		<category><![CDATA[Get All Teams A User Is A Member Of]]></category>
		<category><![CDATA[see what teams a user is a member of]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=3089</guid>

					<description><![CDATA[<p>If you administer Microsoft Teams, the day where you&#8217;ll need to know how to get all Teams a user is a member of can come in handy. Today we&#8217;re going to share exactly this can be done quickly and efficiently&#8230; <a href="https://thesysadminchannel.com/get-all-teams-a-user-is-a-member-of/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/get-all-teams-a-user-is-a-member-of/">Get All Teams A User Is A Member Of</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you administer Microsoft Teams, the day where you&#8217;ll need to know how to <strong>get all Teams a user is a member of</strong> can come in handy.  Today we&#8217;re going to share exactly this can be done quickly and efficiently using Powershell.</p>
<p>Before we start, you&#8217;ll need to <a href="https://thesysadminchannel.com/install-microsoft-teams-powershell-module/" rel="noopener" target="_blank">install the Microsoft Teams Module for Powershell</a>. Assuming you have the required roles assigned, this should give you everything you need to be up and running in no time.</p>
<h2>General Requirements</h2>
<p>As mentioned, you&#8217;ll need to make sure you have the permissions as well as the module installed but lets lay that out here in an easy to view format.</p>
<ul>
<li>Teams Administrator Role -or- Global Admin Role</li>
<li>Microsoft Teams Powershell Module</li>
</ul>
<p>Now that we have this completed lets move on to the next piece which is actually showing you a way to see what teams a user is a member of.</p>
<h2>Get All Teams A User Is A Member Of</h2>
<p>Luckily for us Microsoft really made this easy because we can use a single cmdlet to this information.  I&#8217;ve seen other places online where people write hundreds of lines of code to get this information and it&#8217;s simply not needed.</p>
<pre class="brush: powershell; title: ; notranslate">
Get-Team -User pcontreras@thesysadminchannel.com
</pre>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Teams-A-User-Is-A-Member-Of.png" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Teams-A-User-Is-A-Member-Of.png" alt="Get All Teams A User Is A Member Of" width="1210" height="602" class="aligncenter size-full wp-image-3097" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Teams-A-User-Is-A-Member-Of.png?v=1619561096 1210w, https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Teams-A-User-Is-A-Member-Of-1024x509.png?v=1619561096 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Teams-A-User-Is-A-Member-Of-768x382.png?v=1619561096 768w" sizes="(max-width: 1210px) 100vw, 1210px" /></a></p>
<p>&nbsp;</p>
<h2>Get All Members of a Team</h2>
<p>Bonus.  We can use this GroupId to get all the members of a Team.  This time instead of <strong>Get-Team -User &lt;UserPrincipalName&gt;</strong> we&#8217;ll be utilizing <strong>Get-TeamUser -GroupId &lt;GroupId&gt;</strong></p>
<pre class="brush: powershell; title: ; notranslate">
Get-TeamUser -GroupId &lt;groupid&gt;
</pre>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Members-of-a-Team.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Members-of-a-Team.png" alt="Get All Members of a Team" width="988" height="414" class="aligncenter size-full wp-image-3101" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Members-of-a-Team.png?v=1619562383 988w, https://thesysadminchannel.com/wp-content/uploads/2021/04/Get-All-Members-of-a-Team-768x322.png?v=1619562383 768w" sizes="(max-width: 988px) 100vw, 988px" /></a></p>
<p>&nbsp;</p>
<p>As you can see here we&#8217;ve figured out a way to get all the Teams a user is a member of.  We&#8217;ve also figured out all the members of a Team by using the GroupId associated with the Team.  </p>
<p>Hopefully, this information will come in handy and will allow you to administer Teams in a more efficient way using Powershell.  I&#8217;ve always been a fan of PS because it allows you to automate and make change in bulk.  If you liked articles like this, feel free to check out our <a href="https://thesysadminchannel.com/office365/teams/" rel="noopener" target="_blank">Teams Gallery</a>.  Not to mention <a href="https://www.youtube.com/c/theSysadminChannel" rel="noopener" target="_blank">the Sysadmin Channel</a> for awesome video content.</p>
<p>The post <a href="https://thesysadminchannel.com/get-all-teams-a-user-is-a-member-of/">Get All Teams A User Is A Member Of</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/get-all-teams-a-user-is-a-member-of/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3089</post-id>	</item>
	</channel>
</rss>
