From 50d437dda88b3cb30012da15272cf714c1428a5a Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Wed, 23 Jul 2025 17:52:25 +0200 Subject: [PATCH] [MM-26609] Show user auth_data in System Console user details page (#33446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * MM-26609: Show user auth_data in System Console user details page - Add auth_data field to UserProfile TypeScript type - Display auth_data in System Console user details page next to Authentication Method - Only show auth_data when both auth_data and auth_service are present - Add internationalization support for "Auth Data" label - Helps administrators troubleshoot authentication issues by showing external auth IDs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude * Update webapp/channels/src/components/admin_console/system_user_detail/system_user_detail.tsx Co-authored-by: Elias Nahum * Strengthen type checks --------- Co-authored-by: Claude Co-authored-by: Elias Nahum Co-authored-by: Mattermost Build --- .../system_user_detail/system_user_detail.tsx | 14 ++++++++++++-- webapp/channels/src/i18n/en.json | 1 + webapp/platform/types/src/users.ts | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/webapp/channels/src/components/admin_console/system_user_detail/system_user_detail.tsx b/webapp/channels/src/components/admin_console/system_user_detail/system_user_detail.tsx index 8d927db586f..adcbbc512b6 100644 --- a/webapp/channels/src/components/admin_console/system_user_detail/system_user_detail.tsx +++ b/webapp/channels/src/components/admin_console/system_user_detail/system_user_detail.tsx @@ -367,7 +367,7 @@ export class SystemUserDetail extends PureComponent { isLoading={this.state.isLoading} body={ <> - {this.state?.user?.position ?? ''} + {this.state.user?.position ?? ''} + {Boolean(this.state.user?.auth_data && this.state.user?.auth_service) && ( + + )} } footer={ diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json index 32437c8969c..b11fa22b9a8 100644 --- a/webapp/channels/src/i18n/en.json +++ b/webapp/channels/src/i18n/en.json @@ -3146,6 +3146,7 @@ "admin.user_settings.policy_list.no_policies_found": "No policies found", "admin.user_settings.policy_list.search_policy_errored": "Something went wrong. Try again", "admin.userManagement.userDetail.addTeam": "Add Team", + "admin.userManagement.userDetail.authData": "Auth Data", "admin.userManagement.userDetail.authenticationMethod": "Authentication Method", "admin.userManagement.userDetail.email": "Email", "admin.userManagement.userDetail.mfa": "MFA", diff --git a/webapp/platform/types/src/users.ts b/webapp/platform/types/src/users.ts index a20dc352619..bc677843bb3 100644 --- a/webapp/platform/types/src/users.ts +++ b/webapp/platform/types/src/users.ts @@ -39,6 +39,7 @@ export type UserProfile = { delete_at: number; username: string; password: string; + auth_data?: string; auth_service: string; email: string; nickname: string;