Find users by created date rather than last authenticated date
プラットフォームについて: 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 は除く
要約
When looking for users (possibly in the case to remove some to free up licenses), the /admin/users endpoint only provides a last authenticated date and doesn't mention when the user was originally created.
環境
Bitbucket Server
ソリューション
The following DB query can be run against your database to get users based on the created date. Note: This does not state if those users consume a license or any other information.
For PSQL
SELECT * FROM cwd_user WHERE CAST(created_date AS Date) >= 'YYYY-MM-DD'
Oracle の場合
SELECT * FROM cwd_user WHERE CAST(created_date AS Date) >= 'DD-MM-YYYY';