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

  • リリースバージョン: Washingtondc
  • 更新日 2024年02月01日
  • 読む1読むのに数分
  • Microsoft Teams の [Employee Center] タブに表示される、カスタムポータルのログアウトオプションは非表示にすることができます。

    始める前に

    必要なロール:管理者

    手順

    1. 移動先 すべて > サービスポータル > CSS.
      CSS リスト
    2. [カスタム CSS] をクリックします。
    3. CSS を編集するにはここをクリックします。
      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 の [カスタムポータル] タブを更新します。