Skip to main content

useUserProfile()

Home > @backstage/plugin-user-settings > useUserProfile

Signature:

useUserProfile: () => {
profile: ProfileInfo;
displayName: string;
loading: boolean;
backstageIdentity?: undefined;
} | {
profile: ProfileInfo;
backstageIdentity: import("@backstage/core-plugin-api").BackstageUserIdentity;
displayName: string;
loading: false;
}

Returns:

{ profile: ProfileInfo; displayName: string; loading: boolean; backstageIdentity?: undefined; } | { profile: ProfileInfo; backstageIdentity: import("@backstage/core-plugin-api").BackstageUserIdentity; displayName: string; loading: false; }