Feedback by UserVoice

Kaustubh Phatak

My feedback

  1. 287 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    11 comments  ·  Office 365 Security & Compliance » Auditing  ·  Flag idea as inappropriate…  ·  Admin →
    Kaustubh Phatak commented  · 

    Search-UnifiedAuditLog -StartDate 1/1/2019 -EndDate 3/21/2019 -RecordType AzureActiveDirectory -

    Operations "Add user."-ResultSize 2000| fl >AssignLic.csv

    We can check in the Output of the above command for the string "AssignedLicense " to go through the logs of assigning license to a user.

    Powershell command to check activity about license :

    Search-UnifiedAuditLog -StartDate 1/1/2019 -EndDate 3/21/2019 -RecordType AzureActiveDirectory -Operations "Change user license."-ResultSize 2000| ft CreationDate,UserIds, RecordType, Operations ,AuditData

Feedback and Knowledge Base