# Add new Bulk users

**URL:** <https://forums.powershell.org/t/add-new-bulk-users/16287>\
**Category:** PowerShell Help\
**Created:** [April 18, 2021, 5:33pm UTC](https://forums.powershell.org/t/add-new-bulk-users/16287 "2021-04-18T17:33:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GUaro5555](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@GUaro5555](https://forums.powershell.org/u/GUaro5555)\
**Post date:** [April 18, 2021, 5:33pm UTC](https://forums.powershell.org/t/add-new-bulk-users/16287/1 "2021-04-18T17:33:06Z")

</div>

HI gurus

can I add newly created bulk users directly to the security group?

I have created a new security global security Group and I want to add a bulk of user with a password that I have on a CSV file?

Thanks

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [April 18, 2021, 10:56pm UTC](https://forums.powershell.org/t/add-new-bulk-users/16287/2 "2021-04-18T22:56:27Z")

</div>

Jose,  
welcome to the forums.

> [@GUaro5555](#):
>
> can I add newly created bulk users directly to the security group?

Of course. That’s easily doable with PowerShell. To get you started you should read about the cmdlets

> **[Import-Csv (Microsoft.PowerShell.Utility) - PowerShell](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/import-csv?view=powershell-7.4&viewFallbackFrom=powershell-7.1)**
>
> The Import-Csv cmdlet creates table-like custom objects from the items in CSV files. Each column in the CSV file becomes a property of the custom object and the items in rows become the property values. Import-Csv works on any CSV file, including...

and

> **[Add-ADGroupMember (ActiveDirectory)](https://learn.microsoft.com/en-us/powershell/module/activedirectory/add-adgroupmember?view=windowsserver2019-ps)**
>
> Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.

> [@GUaro5555](#):
>
> I have created a new security global security Group and I want to add a bulk of user with a password that I have on a CSV file?

You don’t have to re-invent the wheel though. There are more than enough examples for tasks like this out there. You may search for examples either here in the forum or on [StackOverflow](https://stackoverflow.com/questions/tagged/powershell) or the [PowerShell-Gallery](https://www.powershellgallery.com).

If you already have code you wrote and you’ve got stuck with it you should post this code here and the errors if there are some and explain what’s not working as expected and we might be able to help you further.

Regardless of that - I think this question would fit better in the category “PowerShell Help”. You may change this. 😉

---

<div class="post-metadata">

**Author:** ![GUaro5555](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@GUaro5555](https://forums.powershell.org/u/GUaro5555)\
**Post date:** [April 18, 2021, 11:25pm UTC](https://forums.powershell.org/t/add-new-bulk-users/16287/3 "2021-04-18T23:25:41Z")

</div>

Olaf  
Thanks a bunch for jumping, what I was looking for is for a totally new user, it seems like I have to create the user first New-aduser and then add-adgroupmember, I was looking to see if it was possible to do and do one step instead of two steps.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [April 19, 2021, 12:01am UTC](https://forums.powershell.org/t/add-new-bulk-users/16287/4 "2021-04-19T00:01:40Z")

</div>

That’s like a chicken and egg problem. You have to have an existing user to be able to add this as a new member to a group. You could use the parameter -PassThru for the New-ADUser cmdlet to get a return object representing the newly created user. You can use this to add it to the AD group. But yes - you have to create the user first.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:26pm UTC](https://forums.powershell.org/t/add-new-bulk-users/16287/5 "2024-05-16T20:26:43Z")

</div>


