Kết nối truy xuất thông tin user trên Microsoft 365

PowerShell admin:

Cài đặt: 

Install-Module Microsoft.Graph -Scope AllUsers

Import:

Import-Module Microsoft.Graph.Users 

Từ lần sau trở đi chỉ cần login trước khi chạy script:

Connect-MgGraph -Scopes "User.Read.All","Directory.Read.All"

 

No comments:

Post a Comment

MS 365 chạm giới hạn số lượng xóa user cùng lúc

Để tránh xóa nhầm, trên hệ thống AAD Connect sẽ có giới hạn số lượng user xóa trong cùng 1 lượt:  https://learn.microsoft.com/en-us/entra/id...