Skip to content

Function: getUserData()

ts
function getUserData(client: Client): Promise<any>;

Defined in: src/ms-graph/outlook.ts:216

Get the profile data of the authenticated user.

Parameters

ParameterTypeDescription
clientClientThe Microsoft Graph client.

Returns

Promise<any>

The user profile object.

Example

ts
const client = await getMsGraphClient(creds);
const user = await getUserData(client);
console.log('Hello,', user.displayName);

Matterway Assistant SDK Documentation