<?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>Add Users To An Azure AD Group Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/add-users-to-an-azure-ad-group/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/add-users-to-an-azure-ad-group/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Tue, 26 Oct 2021 23:16:17 +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>How To Add Users To An Azure AD Group Using Powershell</title>
		<link>https://thesysadminchannel.com/how-to-add-users-to-an-azure-ad-group-using-powershell/</link>
					<comments>https://thesysadminchannel.com/how-to-add-users-to-an-azure-ad-group-using-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Wed, 06 Oct 2021 01:36:32 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Add Users To An Azure AD Group]]></category>
		<category><![CDATA[Add-AzureADGroupMember]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=3373</guid>

					<description><![CDATA[<p>Active Directory groups in general, are one of best ways to maintain access for a certain resource. This has been one of the most fundamental concepts since the beginning of time and now that people are getting more and more&#8230; <a href="https://thesysadminchannel.com/how-to-add-users-to-an-azure-ad-group-using-powershell/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/how-to-add-users-to-an-azure-ad-group-using-powershell/">How To Add Users To An Azure AD Group Using Powershell</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Active Directory groups in general, are one of best ways to maintain access for a certain resource.  This has been one of the most fundamental concepts since the beginning of time and now that people are getting more and more involved in a cloud environment, it would be good to familiarize yourself with the action of how to <strong>add users to an Azure AD group</strong>. </p>
<div id="tableofcontents">
<h2>Table Of Contents</h2>
<ul>
<li><a href="#Requirements">Requirements and Permissions</a></li>
<li><a href="#AddFromAzurePortal">Adding Role From The Azure Portal</a></li>
<ul>
<li><a href="#AddUserAzurePortal">Add Users To An Azure AD Group in Azure Portal</a></li>
<li><a href="#AddGroupAzurePortal">Using A Group to Add Additional Members in Azure Portal</a></li>
</ul>
<li><a href="#AddFromPowershell">Add Users To An Azure AD Group Using Powershell</a></li>
<li><a href="#Conclusion">Conclusion</a></li>
</ul>
</div>
<p>&nbsp;<br />
&nbsp;<br />
Today we&#8217;re going to discuss several methods of getting our users added to groups. Generally they&#8217;ll look like this.</p>
<ul>
<li>Adding Members in the Azure Portal</li>
<ul>
<li>Adding Users to a Group</li>
<li>Using the group to add additional members</li>
</ul>
<li>Adding Members using Powershell</li>
</ul>
<p>&nbsp;<br />
It might seem a little nonsensical, but in the Azure Portal (GUI) you can accomplish this goal from the user object as well as the group object. Also, with anything Azure Active Directory related, let&#8217;s go over the requirements and permissions needed.</p>
<div id="Requirements" style="scroll-margin-top: 15px;"></div>
<h2>Requirements and Permissions</h2>
<p>As mentioned, there are permissions required to successfully accomplish this task.</p>
<ul>
<li>User Administrator -or Global Administrator Azure AD Role</li>
<ul>
<li>If you&#8217;re using an administrative unit, group administrator is required for managing groups</li>
</ul>
<li>The AzureAD -or AzureADPreview Powershell Module (for Powershell Portion)</li>
</ul>
<div id="AddFromAzurePortal" style="scroll-margin-top: 15px;"></div>
<div id="AddUserAzurePortal" style="scroll-margin-top: 15px;"></div>
<h2>Add Users To An Azure AD Group in Azure Portal</h2>
<p>This method is pretty straight forward and assuming you have the proper permissions required above, you can simply follow these steps.</p>
<ul>
<li>Navigate to <a href="https://portal.azure.com" rel="noopener" target="_blank">https://portal.azure.com</a> -> <strong>Azure Active Directory</strong> -> <strong>Users</strong></li>
<li>Search for the user you want to add</li>
<li>Select <strong>Groups</strong> -> <strong>Add Memberships</strong></li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD.png" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD.png" alt="Add users to groups Azure AD" width="1232" height="485" class="aligncenter size-full wp-image-3477" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD.png?v=1633455253 1232w, https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD-1024x403.png?v=1633455253 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD-768x302.png?v=1633455253 768w" sizes="(max-width: 1232px) 100vw, 1232px" /></a></p>
<div id="AddGroupAzurePortal" style="scroll-margin-top: 15px;"></div>
<h2>Using A Group to Add Additional Members in Azure Portal</h2>
<p>Similar to above where you want to add a user to a group through the user object, you can add the member to the group object. Here&#8217;s how:</p>
<ul>
<li>Navigate to <a href="https://portal.azure.com" rel="noopener" target="_blank">https://portal.azure.com</a> -> <strong>Azure Active Directory</strong> -> <strong>Groups</strong></li>
<li>Search for the group you want to update</li>
<li>Select <strong>Members</strong> -> <strong>Add Memberships</strong></li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-group-members-Azure-AD-Direct-Members.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-group-members-Azure-AD-Direct-Members.png" alt="Add group members Azure AD - Direct Members" width="855" height="445" class="aligncenter size-full wp-image-3480" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-group-members-Azure-AD-Direct-Members.png?v=1633457139 855w, https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-group-members-Azure-AD-Direct-Members-768x400.png?v=1633457139 768w" sizes="(max-width: 855px) 100vw, 855px" /></a></p>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-group-members-Azure-AD-All-Members.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-group-members-Azure-AD-All-Members.png" alt="Add group members Azure AD - All Members" width="855" height="445" class="aligncenter size-full wp-image-3481" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-group-members-Azure-AD-All-Members.png?v=1633457461 855w, https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-group-members-Azure-AD-All-Members-768x400.png?v=1633457461 768w" sizes="(max-width: 855px) 100vw, 855px" /></a></p>
<p>&nbsp;</p>
<div id="blockquote1">
<strong>Note:</strong> Nested groups are valid in Azure AD.  To view all members recursively, select the &#8220;All Members&#8221; tab to show <em>everyone</em>
</div>
<div id="AddFromPowershell" style="scroll-margin-top: 15px;"></div>
<h2>Add Users To An Azure AD Group Using Powershell</h2>
<p>When you want to scale your operations or just make adding group members faster through the CLI, you can easily accomplish this via Powershell. Let&#8217;s take a look at a code snippet to add our user, Buzz Lightyear, to the SG &#8211; FakeGroup AAD group.</p>
<pre class="brush: powershell; title: ; notranslate">
#Get ObjectId for Buzz using the Get-AzureADUser cmdlet.
PS C:\&gt; Get-AzureADUser -ObjectId blightyear@thesysadminchannel.com

ObjectId                             DisplayName    UserPrincipalName                 UserType
--------                             -----------    -----------------                 --------
647e9c5e-4498-47b7-a85b-75a5e53cbf89 Buzz Lightyear blightyear@thesysadminchannel.com Member


#Get ObjectId for the SG - FakeGroup using the Get-AzureADGroup cmdlet and specifying a searchstring.  Personally, I would get the group ObjectId from the portal instead since multiple groups can have the same DisplayName.
PS C:\&gt; Get-AzureADGroup -SearchString 'SG - FakeGroup'

ObjectId                             DisplayName    Description
--------                             -----------    -----------
51fb0824-5318-448c-8de6-ffc06c192b0d SG - FakeGroup A group thats not real

#Use Add-AzureADGroupMember with the ObjectId as the groups ObjectId and the RegObjectId as the user's ObjectId
PS C:\&gt; Add-AzureADGroupMember -ObjectId 51fb0824-5318-448c-8de6-ffc06c192b0d -RefObjectId 647e9c5e-4498-47b7-a85b-75a5e53cbf89
     
</pre>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD-Using-Powershell.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD-Using-Powershell.png" alt="Add users to groups Azure AD Using Powershell" width="1177" height="424" class="aligncenter size-full wp-image-3484" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD-Using-Powershell.png?v=1633481163 1177w, https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD-Using-Powershell-1024x369.png?v=1633481163 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/10/Add-users-to-groups-Azure-AD-Using-Powershell-768x277.png?v=1633481163 768w" sizes="(max-width: 1177px) 100vw, 1177px" /></a></p>
<div id="Conclusion" style="scroll-margin-top: 15px;"></div>
<h2>Conclusion</h2>
<p>Hopefully, this article was elaborate enough to show you how to add users to an Azure AD group using Powershell or using the Azure Portal (GUI).  For me personally, since I&#8217;m a CLI type of guy, I always prefer to use to Powershell over the GUI because its so much more convenient.</p>
<p>If you would like to see more content like this, be sure to check out our <a href="https://thesysadminchannel.com/azure/" rel="noopener" target="_blank">Azure Gallery</a> or better yet, all of our <a href="https://thesysadminchannel.com/powershell/" rel="noopener" target="_blank">Powershell Posts</a></p>
<p>The post <a href="https://thesysadminchannel.com/how-to-add-users-to-an-azure-ad-group-using-powershell/">How To Add Users To An Azure AD Group Using Powershell</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/how-to-add-users-to-an-azure-ad-group-using-powershell/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3373</post-id>	</item>
	</channel>
</rss>
