How to retrieve a log of all users (e-mail addresses) that ever had access to a specific Sharepoint/Teams Channel?

LisaLuise-7022 0 Reputation points
2024-07-26T00:44:18.9433333+00:00

Dear all,

I am the Administrator of my company account with Microsoft incl. 365 subscription.

We have previously created a Sharepoint where we have invited external users to access and edit files. We have in the meantime removed them from accessing this Sharepoint - however, we would now need an audit log that shows which users (e-Mail Adresses) ever had access to that Sharepoint/Teams Channel. Currently, removed users show up as "Unknown User" and do not show in the new activity logs. Unfortunately it seems that previous answers on this topic do not apply to the new audit log features of Microsoft anymore.

Thank you very much in advance!

KR

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,124 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,311 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,827 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Emily Du-MSFT 47,301 Reputation points Microsoft Vendor
    2024-07-26T10:10:12.3833333+00:00

    Per my test, if a guest user has been deleted, his activities also show in the audit logs.

    1.Delete a user.

    enter image description here

    2.In the audit logs.

    2


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Alvaro Avila 85 Reputation points
    2024-07-26T10:21:25.1133333+00:00

    Get-SPOUser -Site https://contoso.sharepoint.com/sites/finance

    https://learn.microsoft.com/en-us/powershell/module/sharepoint-online/get-spouser?view=sharepoint-ps

    You will get all user that ever accessed that site, no matter if they have been deleted, internal or external.
    Each site has its own user list where every user that access the site is registered and stays there until manually deleted from that list. Removing used from Entra ID doesn't remove it from each site.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.