How to Require Users to Accept an Agreement in SharePoint
Question details
The user is looking for a way to block access to SharePoint Online until users read and accept an acceptable-use agreement or terms of service.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Administrators need to enforce compliance by ensuring every user acknowledges a corporate agreement before they are granted access to company SharePoint sites.
- Observed behavior
- SharePoint Online does not have an out-of-the-box feature to natively present an agreement prompt, block access, or record user consent prior to site entry.
Verify that your Microsoft 365 tenant is equipped with Microsoft Entra ID P1 or P2 licenses, as these are required to configure and enforce Conditional Access policies.
Use Microsoft Entra Conditional Access to Enforce Agreements
Utilize the Terms of Use feature in Microsoft Entra ID to require agreement acceptance before users can authenticate into SharePoint.
While SharePoint Online itself cannot block access natively based on an agreement, you can secure the authentication layer. Microsoft Entra ID allows administrators to upload a PDF agreement and enforce its acceptance through Conditional Access.
Once configured, users attempting to access SharePoint will be intercepted by a prompt displaying your PDF document. They must click to accept the terms before the login process completes.
Log in to the Microsoft Entra admin center as a Conditional Access Administrator.
Navigate to Protection, select Conditional Access, and click on Terms of use. Click 'New terms' and upload your acceptable-use agreement as a PDF file.
Set your display name and choose options such as requiring users to expand the document to the bottom before they can accept.
Go to Policies under Conditional Access and create a new policy. Target specific users or groups, and under 'Target resources' (Cloud apps), select 'Office 365 SharePoint Online'.
Under 'Access controls' > 'Grant', select 'Grant access' and check the box next to your newly created Terms of Use. Save and enable the policy.

Submit a Feature Request to Microsoft
Provide feedback to Microsoft to request native, out-of-the-box agreement functionality directly within SharePoint Online.
Enhance Your Document Workflow with WPS Office
While you use Microsoft Entra to manage SharePoint access, drafting your compliance documents and user agreements requires a reliable word processor. WPS Office provides a free, highly compatible, and lightweight alternative to Microsoft Office, perfect for creating the exact PDF files needed for your Terms of Use policies.
- 1. Download WPS Office: Visit the official WPS Office website to download the free suite for your operating system.
- 2. Draft the Agreement: Open WPS Writer and draft your corporate acceptable-use policies with advanced formatting tools.
- 3. Export to PDF: Use the built-in 'Export to PDF' feature in WPS Office to generate the required PDF format for uploading into Microsoft Entra ID.

Frequently Asked Questions
Can I use a custom SharePoint web part to display a user agreement?
Yes, developers often use the SharePoint Framework (SPFx) or Power Apps to create custom splash screens or pop-ups. However, unlike Conditional Access, these custom solutions primarily hide content on the frontend and cannot completely block backend access or API calls if users bypass the UI.
Do Microsoft Entra Terms of Use require premium licenses?
Yes, configuring Conditional Access policies and implementing the Terms of Use feature requires a Microsoft Entra ID P1 or P2 license in your tenant.
Can I track who has accepted the Microsoft Entra Terms of Use?
Yes, the Microsoft Entra admin center provides detailed audit logs. Administrators can view exactly which users have accepted or declined the terms, including the specific timestamp of their decision.




