How to Prevent Users from Signing In or Out of Microsoft 365 Apps
Question details
Administrators want to restrict users from signing out or switching accounts within Office desktop applications.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- IT administrators need to lock down the user identity within Office apps, preventing users from hiding behind different accounts or logging out of the authorized organizational account in the same domain.
- Observed behavior
- The Sign In and Sign Out buttons remain visible and functional in Word, Excel, and PowerPoint, allowing users to switch accounts even when external tenant restrictions are applied.
Ensure you have Global Administrator or Security Administrator privileges in your Microsoft Entra ID (formerly Azure AD) portal to create and enforce security policies.
Use Conditional Access Policies as a Workaround
Since the sign-out control cannot be natively hidden, applying a Conditional Access policy ensures unauthorized logins are blocked based on device compliance or location.
Currently, Microsoft 365 applications do not offer a native Group Policy or registry setting to completely remove or disable the Sign In and Sign Out buttons in the user interface.
As a reliable workaround, administrators can enforce Conditional Access policies. This ensures that even if users sign out or attempt to sign in with an alternate account in the same domain, they cannot access corporate Office services unless they are on an approved device or corporate network.
Navigate to the Microsoft Entra admin center (entra.microsoft.com) and log in using your administrator credentials.
In the left-hand navigation pane, expand the 'Protection' menu and click on 'Conditional Access'.
Click on 'Create new policy'. Give your policy a descriptive name, and assign it to the specific users or groups you wish to restrict.
Under 'Target resources', select 'Cloud apps', then choose 'Select apps' and add 'Office 365' to the policy scope.
Under 'Conditions', define your approved locations or required device states. Under 'Grant', choose 'Block access' to deny entry for any sign-ins that do not meet your strict organizational requirements.

Try WPS Office for a Simplified Office Experience
If managing complex Microsoft 365 enterprise policies is becoming cumbersome, consider WPS Office. It provides a lightweight, highly compatible, and user-friendly alternative for your document processing needs without the steep administrative overhead.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the Suite: Run the downloaded installer and follow the simple on-screen prompts to set up WPS Office on your device.
- 3. Open and Edit Files: Launch WPS Office and open your existing Microsoft Office documents directly; no complex account switching is required to edit local files.

Frequently Asked Questions
Can I completely hide the Sign In button in Word or Excel?
No, Microsoft does not currently provide a native setting or Group Policy Object (GPO) to completely hide the Sign In or Sign Out buttons within the desktop applications.
Do Tenant Restrictions prevent users from signing into other accounts?
Tenant Restrictions only prevent users from authenticating to external organizations (other tenants). They do not stop users from signing out and switching to a different account within the same domain.
How can I enforce secure sign-ins for Microsoft 365 apps?
The most robust method is using Microsoft Entra Conditional Access policies. This allows administrators to require multi-factor authentication (MFA) or restrict logins exclusively to trusted locations and compliant company devices.




