[MM-26609] Show user auth_data in System Console user details page (#33446)

* 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 <noreply@anthropic.com>

* Update webapp/channels/src/components/admin_console/system_user_detail/system_user_detail.tsx

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Strengthen type checks

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Ben Schumacher
2025-07-23 17:52:25 +02:00
committed by GitHub
co-authored by Claude Elias Nahum Mattermost Build
parent 415b793feb
commit 50d437dda8
3 changed files with 14 additions and 2 deletions
@@ -367,7 +367,7 @@ export class SystemUserDetail extends PureComponent<Props, State> {
isLoading={this.state.isLoading}
body={
<>
<span>{this.state?.user?.position ?? ''}</span>
<span>{this.state.user?.position ?? ''}</span>
<label>
<FormattedMessage
id='admin.userManagement.userDetail.email'
@@ -388,7 +388,7 @@ export class SystemUserDetail extends PureComponent<Props, State> {
defaultMessage='Username'
/>
<AtIcon/>
<span>{this.state?.user?.username}</span>
<span>{this.state.user?.username}</span>
</label>
<label>
<FormattedMessage
@@ -398,6 +398,16 @@ export class SystemUserDetail extends PureComponent<Props, State> {
<SheidOutlineIcon/>
<span>{getUserAuthenticationTextField(this.props.intl, this.props.mfaEnabled, this.state.user)}</span>
</label>
{Boolean(this.state.user?.auth_data && this.state.user?.auth_service) && (
<label>
<FormattedMessage
id='admin.userManagement.userDetail.authData'
defaultMessage='Auth Data'
/>
<SheidOutlineIcon/>
<span>{this.state.user?.auth_data}</span>
</label>
)}
</>
}
footer={
+1
View File
@@ -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",
+1
View File
@@ -39,6 +39,7 @@ export type UserProfile = {
delete_at: number;
username: string;
password: string;
auth_data?: string;
auth_service: string;
email: string;
nickname: string;