diff --git a/datahub-web-react/src/app/entity/shared/containers/profile/sidebar/Ownership/EditOwnersModal.tsx b/datahub-web-react/src/app/entity/shared/containers/profile/sidebar/Ownership/EditOwnersModal.tsx
index 62b967e8f7b30d..e57666471df1a6 100644
--- a/datahub-web-react/src/app/entity/shared/containers/profile/sidebar/Ownership/EditOwnersModal.tsx
+++ b/datahub-web-react/src/app/entity/shared/containers/profile/sidebar/Ownership/EditOwnersModal.tsx
@@ -78,10 +78,26 @@ export const EditOwnersModal = ({
const renderSearchResult = (entity: Entity) => {
const avatarUrl =
(entity.type === EntityType.CorpUser && (entity as CorpUser).editableProperties?.pictureLink) || undefined;
+ const corpUserDepartmentName =
+ (entity.type === EntityType.CorpUser && (entity as CorpUser).properties?.departmentName) || '';
+ const corpUserId = (entity.type === EntityType.CorpUser && (entity as CorpUser).username) || '';
+ const corpUserTitle = (entity.type === EntityType.CorpUser && (entity as CorpUser).properties?.title) || '';
const displayName = entityRegistry.getDisplayName(entity.type, entity);
+
return (
-
-
+ }
+ >
+
);
};
@@ -381,6 +397,7 @@ export const EditOwnersModal = ({
value: owner.value.ownerUrn,
label: owner.label,
}))}
+ optionLabelProp="label"
>
{ownerSearchOptions}
diff --git a/datahub-web-react/src/app/shared/OwnerLabel.tsx b/datahub-web-react/src/app/shared/OwnerLabel.tsx
index de3c03dea2ba4a..fb670aa56d7881 100644
--- a/datahub-web-react/src/app/shared/OwnerLabel.tsx
+++ b/datahub-web-react/src/app/shared/OwnerLabel.tsx
@@ -20,14 +20,22 @@ type Props = {
name: string;
avatarUrl: string | undefined;
type: EntityType;
+ corpUserId?: string;
+ corpUserTitle?: string;
+ corpUserDepartmentName?: string;
};
-export const OwnerLabel = ({ name, avatarUrl, type }: Props) => {
+export const OwnerLabel = ({ name, avatarUrl, type, corpUserId, corpUserTitle, corpUserDepartmentName }: Props) => {
+ const subHeader = [corpUserId, corpUserTitle, corpUserDepartmentName].filter(Boolean).join(' - ');
+
return (
- {name}
+
+
{name}
+ {subHeader &&
{subHeader}
}
+
);
diff --git a/datahub-web-react/src/graphql/search.graphql b/datahub-web-react/src/graphql/search.graphql
index 72e7d347187828..de7d1befd39b08 100644
--- a/datahub-web-react/src/graphql/search.graphql
+++ b/datahub-web-react/src/graphql/search.graphql
@@ -433,6 +433,8 @@ fragment searchResultsWithoutSchemaField on Entity {
lastName
fullName
email
+ departmentName
+ title
}
info {
active
@@ -442,6 +444,8 @@ fragment searchResultsWithoutSchemaField on Entity {
lastName
fullName
email
+ departmentName
+ title
}
editableProperties {
displayName