Prevent Users from Changing Their E-mail Address

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

This KB will help admins to hide the email field from User Profiles for all Confluence users who are not part of the confluence-administrator group, therefore preventing them from changing their e-mail address.

ソリューション

The below steps will help admins hide the option for users to change their e-mail address by hiding the field entirely. They will still be able to edit other User Profile details. 

  • How to hide the email field for users that are not members of confluence-admin group. (If you want to expose the field for another particular group, replace confluence-administrator with the group name or add another group in addition to confluence-administrator.)

    • Site-wide changes
      • Navigate to Confluence Administration page >> Layout.

      • Under Site Layouts, search for Main Layout and click Edit/Create Custom.

      • tags.">Find the following section: <head> and </head> tags.

      • tag.">Copy and paste the following code before the </head> tag.

        • #if ($userAccessor.hasMembership('confluence-administrators', $helper.action.remoteUser.name))
          #else
              <script type="text/javascript">
              AJS.toInit(function(){
          AJS.$('#email-label').hide();
          AJS.$('#email').hide();
              });
          </script>
          #end

 Please test these customizations in a Staging Instance first. Once the customization is applied, users who are not part of confluence-administrators group will not be able to see or edit their email in their User Profile page.

最終更新日: 2022 年 2 月 22 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.