Forum Discussion
youssefch
Mar 18, 2019Copper Contributor
Assign user automatically to group in Office 365
Hello, I want to automatically assign a user, from its creation, to Office 365 groups and Microsoft teams. How can I do it?
youssefch
Copper Contributor
Thank You SIR :D ChrisHoardMVP
another question please , how i can get a script to create office 365 user using powershell ; have you one script ?
Mar 19, 2019
I don't have a script but here are the links to the Powershell Commands -
Add user to Office 365
https://docs.microsoft.com/en-gb/office365/enterprise/powershell/create-user-accounts-with-office-365-powershell
Add users to Office 365 Group
https://lazyadmin.nl/it/manage-office-365-groups-members-owners-powershell/
If the Team is linked to the Group then they should be added. If you have the Teams Powershell module (https://www.powershellgallery.com/packages/MicrosoftTeams/0.9.0) installed you could just add the user to the Team which will add them to the Office 365 Group
https://docs.microsoft.com/en-us/powershell/module/teams/add-teamuser?view=teams-ps
Hope that answers your question! Best of luck!
Best, Chris
Add user to Office 365
https://docs.microsoft.com/en-gb/office365/enterprise/powershell/create-user-accounts-with-office-365-powershell
Add users to Office 365 Group
https://lazyadmin.nl/it/manage-office-365-groups-members-owners-powershell/
If the Team is linked to the Group then they should be added. If you have the Teams Powershell module (https://www.powershellgallery.com/packages/MicrosoftTeams/0.9.0) installed you could just add the user to the Team which will add them to the Office 365 Group
https://docs.microsoft.com/en-us/powershell/module/teams/add-teamuser?view=teams-ps
Hope that answers your question! Best of luck!
Best, Chris