Тёмный

Restrict or allow Microsoft Teams group creation for Office 365 users | PowerShell 

ITeePK
Подписаться 1,3 тыс.
Просмотров 326
50% 1

In this tutorial video, learn how to control user permissions within Microsoft Office 365 and Microsoft Teams effectively. Follow along as we demonstrate how to allow only a specific group of users to create Office 365 accounts and Teams, while restricting access for other users. Using PowerShell and the Office 365 Admin portal, we navigate through the process meticulously, ensuring a clear understanding of each step.
Watch as we verify the settings to confirm the user restrictions are in place as intended. Additionally, discover how to revert these settings back to their original state with ease. Whether you're new to user management in Office 365 or seeking a refresher, this comprehensive guide provides valuable insights and practical knowledge to streamline user permission control within your organization.
Setup Power Shell Azure module:
Install-Module AzureADPreview
Check Status Command:
(Get-AzureADDirectorySetting -Id $settingsObjectID).Values
Script to allow the group of users who can create Teams & Microsoft Office 365 Group.
$GroupName = "AllowedToCreateGroups"
$AllowGroupCreation = "False"
Connect-AzureAD
$settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id
if(!$settingsObjectID)
{
$template = Get-AzureADDirectorySettingTemplate | Where-object {$_.displayname -eq "group.unified"}
$settingsCopy = $template.CreateDirectorySetting()
New-AzureADDirectorySetting -DirectorySetting $settingsCopy
$settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id
}
$settingsCopy = Get-AzureADDirectorySetting -Id $settingsObjectID
$settingsCopy["EnableGroupCreation"] = $AllowGroupCreation
if($GroupName)
{
$settingsCopy["GroupCreationAllowedGroupId"] = (Get-AzureADGroup -SearchString $GroupName).objectid
}
Set-AzureADDirectorySetting -Id $settingsObjectID -DirectorySetting $settingsCopy
(Get-AzureADDirectorySetting -Id $settingsObjectID).Values
Related Video: Manage Guest Access in Microsoft Teams: • How to Manage Guest Ac...
#teams #microsoft #office365 #powershell #microsoft365 group

Опубликовано:

 

17 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
Далее
Школьник угомонил бандита!
01:00
ГОЧА ПРО NISSAN 400Z
00:51
Просмотров 40 тыс.
macOS Sequoia Released - What's New? (75+ New Features)
39:50
MS-900 Microsoft 365 Fundamentals Study Cram
1:55:25
Просмотров 308 тыс.