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

Full các trường data có thể lấy từ AD on-prem

Mail Presence PermissionGrants Department ImAddresses Responsibilities AppRoleAssignments ...