Hide the logout button on the custom portal
task brazil Updated Sep 10, 2026 1 min read disable-logout-button-teams-custom-portal.md
You can hide the logout option for your custom portal that appears in the Employee Center tab within Microsoft Teams.
Before you begin
Role required: admin
Procedure
-
Navigate to All > Service Portal > CSS.
[Omitted image "system-css.png"] Alt text: CSS list
-
Click on your custom CSS.
-
Click here to edit the CSS.
[Omitted image "edit-css-2.png"] Alt text: Edit CSS
-
To disable the logout button from Microsoft Teams desktop application.
Customize the following code as required and paste in the CSS.
CSS/* Embedded portal */ /*The code shared to disable the logout button is an example. You need to customize as required to disable logout button.*/ .embedded-experience .avatar-drop-down .header-menu-item:last-child { display: none; } -
To disable the logout button from Microsoft Teams mobile application.
Customize the following code as required and paste in the CSS.
CSS/* Embedded portal */ /*The code shared to disable logout button is an example. You need to customize as required to disable logout button.*/ .embedded-experience .impersonate-and-logout { div > ul > li:last-child { display: none !important; } } -
Click Update.
-
Refresh the custom portal tab in Microsoft Teams.
Parent Topic:Embed a custom portal
75 lines · 2.4 KB
---
title: Hide the logout button on the custom portal
description: You can hide the logout option for your custom portal that appears in the Employee Center tab within Microsoft Teams.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/employee-service-management/employee-experience-foundation/disable-logout-button-teams-custom-portal.html
release: brazil
product: Employee Experience Foundation
classification: employee-experience-foundation
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Embed a custom portal, Configuring Employee Center, HR Service Delivery integration, Microsoft Teams Integration for Employee Experience, Configure, ServiceNow for Microsoft Teams and Microsoft 365, EmployeeWorks, Employee Service Management]
---
# Hide the logout button on the custom portal
You can hide the logout option for your custom portal that appears in the Employee Center tab within Microsoft Teams.
## Before you begin
Role required: admin
## Procedure
1. Navigate to **All** > **Service Portal** > **CSS**.
\[Omitted image "system-css.png"\] Alt text: CSS list
2. Click on your custom CSS.
3. Click **here** to edit the CSS.
\[Omitted image "edit-css-2.png"\] Alt text: Edit CSS
4. To disable the logout button from Microsoft Teams desktop application.
Customize the following code as required and paste in the CSS.
```
/* Embedded portal */
/*The code shared to disable the logout button is an example. You need to customize as required to disable logout button.*/
.embedded-experience .avatar-drop-down .header-menu-item:last-child {
display: none;
}
```
5. To disable the logout button from Microsoft Teams mobile application.
Customize the following code as required and paste in the CSS.
```
/* Embedded portal */
/*The code shared to disable logout button is an example. You need to customize as required to disable logout button.*/
.embedded-experience .impersonate-and-logout {
div > ul > li:last-child {
display: none !important;
}
}
```
6. Click **Update**.
7. Refresh the custom portal tab in Microsoft Teams.
**Parent Topic:**[Embed a custom portal](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/employee-service-management/employee-experience-foundation/customize-custom-portal-employee-center.md)
| title | Hide the logout button on the custom portal |
| description | You can hide the logout option for your custom portal that appears in the Employee Center tab within Microsoft Teams. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/employee-service-management/employee-experience-foundation/disable-logout-button-teams-custom-portal.html |
| release | brazil |
| product | Employee Experience Foundation |
| classification | employee-experience-foundation |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Embed a custom portalConfiguring Employee CenterHR Service Delivery integrationMicrosoft Teams Integration for Employee ExperienceConfigureServiceNow for Microsoft Teams and Microsoft 365EmployeeWorksEmployee Service Management |