Jul 19 2018
- last edited on
Jul 24 2020
I want to reach out to community and ask how admins are managing and creating governance around Guest users (external users).
In O 365 tenant users can invite non-tenant users to participate in Teams or in SharePoint sites. But after the project is complete, they forget to remove them from the Team or Site. Also we see a lot of Guest users in Azure AD tenant that have not logged in last 30 days (I am using Azure AD Sign in logs to see this info). For obvious security reasons, we don't want to leave these Guest users active in our tenants. I know we can get list of external users and their sign in data using Graph API. But my question is more around best practices.
Are there any best practices on how to handle stale guest users? I did not see any MS official documentation around this topic. Please share your governance policies that you have setup for guest users.
Jul 20 2018 01:31 PM
The "best practice" will vary greatly from one organization to the other, as some are very "open" in regards to guest users, other must allow their partners and customers, while organizations in certain industries will never even enable such a feature. Microsoft's own tool to manage guest user lifecycle is called Access Reviews (https://docs.microsoft.com/en-us/azure/active-directory/active-directory-azure-ad-controls-manage-gu...), but unfortunately the license requirements are very prohibitive for any organization not already invested in AAD Premium P2.
PowerShell and the Graph API give you all the tools you need in order to manage Guest users, so you can build your custom solution around it, if the above is too costly.
Jul 20 2018 05:38 PM
@Vasil Michev thank you for your response.
I agree with you that Azure AD Premium P2 is expensive hence I am building my scripts and tools for External user management. Just wanted to ask community how long are you leaving an external user in Azure AD. We cannot leave inactive external users forever in the tenant.
Jul 21 2018 06:58 AM
Running the script/tool on a monthly basis seems like a sensible approach. But again, depends on the organization policies, some organizations will be perfectly fine doing the cleanup once per quarter.
Oct 02 2018 07:55 AM
Does anyone have a Power Shell script that would provide a list of stale guest accounts with the last log in date for users who don't have a mailbox? External users who have been granted access to sites or documents in classic SharePoint sites and modern Team and Communication sites don't have mailboxes.
May 17 2019 05:27 AM
the only way I've seen to check user activity is to go to the sign in logs.
Aside from that nothing
Jan 08 2020 04:15 AM
Hi, old thread, Ive just posted a similar question:
What I found interesting is that SP has the power to create a guest tenant but not the reverse. Seems odd that when deleting a User from an SP site the option isn't presented to remove the AD tenant. In addition any SP sites that are deleted should present the Guest User Tenants to be remove also..... if the Guest User Tenant is in use on another Site then a simple warning/pop up to say "not removed as in use on other Sites"
One issue Ive thought of is the 1:5 ratio of LicenseUser:GuestUser…… how did you overcome this? Or did you keep paying for additional Tenant Licenses?