Nicole Lopez
03/23/2022, 1:47 PMDan Homola
03/24/2022, 8:45 AMyour.gooddata.domain/account.html#/lostPassword
and the user can reset their password there. For GoodData.CN it might be more complicated as it depends on the Identity Provider used.
Does that help?Nicole Lopez
03/24/2022, 8:50 AMconsole.log('Test 1: ', await backend.currentUser().getUser());
console.log('Test 2: ', await backend.currentUser().settings().getSettings());
But i dont get the users password 👀Dan Homola
03/24/2022, 9:02 AMNicole Lopez
03/24/2022, 9:13 AMDan Homola
03/24/2022, 9:14 AMNicole Lopez
03/24/2022, 9:21 AMNicole Lopez
03/24/2022, 9:21 AM<div style={{ height: 300 }}>
{/* <InsightView insight={Md.Insights.BrandrScoreBySurvey} /> */}
<Dashboard dashboard={idRef("D"ASBOARD_ID)} />;
</div>
Nicole Lopez
03/24/2022, 9:22 AMDan Homola
03/24/2022, 9:30 AMimport React, { useEffect, useState } from "react";
import { useBackendStrict, useWorkspaceStrict } from "@gooddata/sdk-ui";
import { Dashboard } from "@gooddata/sdk-ui-dashboard";
export const Example = () => {
const backend = useBackendStrict();
const workspace = useWorkspaceStrict();
const [dashboard, setDashboard] = useState();
useEffect(() => {
const body = async () => {
const allDashboards = await backend.workspace(workspace).dashboards().getDashboards();
const chosenDashboard = allDashboards.find((dash) => {
/* some logic */
});
setDashboard(chosenDashboard);
};
body();
}, [backend, workspace]);
return dashboard ? (
<div style={{ height: 300 }}>
<Dashboard dashboard={dashboard.ref} />;
</div>
) : (
<div>Loading</div>
);
};
Nicole Lopez
03/24/2022, 9:39 AMDan Homola
03/24/2022, 9:59 AMbackend.workspaces().forCurrentUser()
that has some functions for iterating through the available workspaces for the currently logged in user. See the API reference you can find information about the other available functions there as well 🙂Nicole Lopez
03/24/2022, 10:21 AMDan Homola
03/24/2022, 10:26 AMNicole Lopez
03/24/2022, 10:28 AMDan Homola
03/24/2022, 10:29 AMNicole Lopez
03/24/2022, 10:32 AMDan Homola
03/24/2022, 10:34 AMNicole Lopez
03/24/2022, 1:26 PMDan Homola
03/24/2022, 1:36 PM