Forum Discussion

Senthilrajan Kaliyaperumal's avatar
Jun 26, 2018
Solved

Office 365 Group history

Hi,

 

We have found many orphaned office 365 groups in our tenant. It is bit difficult to identify the next owner for those groups. We decided the check if there is any feature or REST API available to get the past owners of Office 365 group. If it is available then we can contact some of the previous owner to propose an new owner for orphaned groups.

 

Are there any way to collect Office 365 Group history using custom scripts?

 

Thanks in advance,

K Senthilrajan

  • TonyRedmond's avatar
    TonyRedmond
    Jun 26, 2018

    If you want to retain Office 365 Audit Data for more than 3 months, buy an ISV reporting product like Radar Reporting, It keeps data for at least a year or longer if you need to.

     

    To find remove actions, search the audit log for "Remove owner from group."

     

    Search-UnifiedAuditLog -Operations "Remove owner from group" -StartDate 1-Jun-2018 -EndDate 26-Jun-2018

     

    You can also find out what workload created an Office 365 group by searching the audit log. I even have details of how to do this in chapter 20 of Office 365 for IT Pros...

    But you don't need to remove orphaned groups. Just give them a new owner and all is well.

     

     

    • Senthilrajan Kaliyaperumal's avatar
      Senthilrajan Kaliyaperumal
      Brass Contributor

      Thanks Tony for the quick reply,  But there is no filter activity "Removed owner from group" in audit log search as well the audit logs available only for 3 months. So audit log approach will not help us because we need minimum 12 months data.

       

      Paul Cunningham script is maintaining logs internally for tracing the change. If I use this script it may help for future occurrences but not helpful for past.

       

      I decided the process the orphaned groups manually, its time taking but I feel it efficient than other approaches.

       

      Please clarify below queries. 

      1. How to check which workload used for creating existing office 365 groups?

      2. If I manually go and remove any orphaned group then what are the minimum dependency check that I will have to perform?

       

      Thanks in advance,

      K Senthilrajan

      • TonyRedmond's avatar
        TonyRedmond
        MVP

        If you want to retain Office 365 Audit Data for more than 3 months, buy an ISV reporting product like Radar Reporting, It keeps data for at least a year or longer if you need to.

         

        To find remove actions, search the audit log for "Remove owner from group."

         

        Search-UnifiedAuditLog -Operations "Remove owner from group" -StartDate 1-Jun-2018 -EndDate 26-Jun-2018

         

        You can also find out what workload created an Office 365 group by searching the audit log. I even have details of how to do this in chapter 20 of Office 365 for IT Pros...

        But you don't need to remove orphaned groups. Just give them a new owner and all is well.

         

         

Resources