Appearance
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
| Parameter | Type | Description |
|---|---|---|
client | Client | The 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);