---
sourceDocument: Yokohama 従業員サービス管理 (ESM)
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/yokohama/employee-service-management

 Release :

    - yokohama

ft:locale :

    - ja-JP

ft:publication_title :

    - Yokohama 従業員サービス管理 (ESM)

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# カスタムポータルでログアウトボタンを非表示にする

# カスタムポータルでログアウトボタンを非表示にする {#ariaid-title1}

* リリースバージョン: Yokohama
* 
* 更新日 2025年01月30日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：1分

Microsoft Teams の \[従業員センター\] タブに表示される、カスタムポータルのログアウトオプションは非表示にすることができます。

## 始める前に

必要なロール：アドミン

## 手順

1. 移動先 すべてサービスポータルCSS.  
2. \[カスタム CSS\] をクリックします。
3. CSS を編集するにはここをクリックします。  
4. Microsoft Teams デスクトップアプリケーションからログアウトボタンを無効にするには、次を実行します。  
   必要に応じて次のコードをカスタマイズし、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. Microsoft Teams モバイルアプリケーションからログアウトボタンの無効にするには、次を実行します。  
   必要に応じて次のコードをカスタマイズし、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. \[更新\] をクリックします。
7. Microsoft Teams の \[カスタムポータル\] タブを更新します。

