Retrieve user email type preferences from the database

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

アトラシアン社外秘

この記事は未検証なのでお客様と共有できません。


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

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

目的

While you can set the default email type globally in Jira, users have the ability to override this setting within their own preferences. Should you need to retrieve a list of how each user has configured this setting, you can do so via the following SQL example.

ソリューション

重要な注意事項

This query only returns users who have explicitly set an email type preference. If a user is not returned, they are inheriting the default global value.

select
  au.lower_user_name
  ,ps.propertyvalue
from app_user au
join propertyentry pe
  on au.id = pe.entity_id
  and pe.entity_name = 'ApplicationUser'
  and pe.property_key = 'user.notifications.mimetype'
join propertystring ps
  on pe.id = ps.id;
説明 SQL query to retrieve user email type preferences
製品Jira、Jira Software、Jira Service Management



最終更新日 2020 年 11 月 23 日

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

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